check if value is present in json file js code example Example: check if json obj exists if(thisSession.hasOwnProperty('merchant_id')){ }