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