Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
 
PREVIOUS NEXT
Tagged: #json #encode #js
ADD COMMENT
Topic
Name
8+7 =