romach
4/22/2017 - 12:51 AM

Object to json

Object to json

   var obj = {};
   obj.name = "Raj";
   obj.age  = 32;
   obj.married = false;
   var jsonString= JSON.stringify(obj);