amt: \"10.00\" email: \"sam@gmail.com\" merchant_id: \"sam\" mobileNo: \"9874563210\" orderID: \"123456\" passkey: \"1234\"
The above is the JSON o
you can do like this:
if("merchant_id" in thisSession){ /** will return true if exist */ console.log('Exist!'); }
or
if(thisSession["merchant_id"]){ /** will return its value if exist */ console.log('Exist!'); }