Javascript Object convert to Json String

Description

Javascript Object convert to Json String

var obj3 = {//ww w .j a v  a2s.c o  m
   prop1 : "test",
   result : true,
   num : 5.44,
   name : "Joe",
   cts : [45,62,13]};
var result = JSON.stringify(obj3);

console.log(result);



PreviousNext

Related