Answers for "encode json in javascript"

0

json encode js

// To encode an object (This produces a string)
var json_str = JSON.stringify(myobject); 

// To decode (This produces an object)
var obj = JSON.parse(json_str);
Posted by: Guest on September-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language