Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert data into json format in javascript

Use the JavaScript function JSON.parse() to convert text into a JavaScript object:
var obj = JSON.parse('{ "name":"John", "age":30, "city":"New York"}');
 
PREVIOUS NEXT
Tagged: #convert #data #json #format #javascript
ADD COMMENT
Topic
Name
3+8 =