Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string to object javascript

var mystr = '{ "hello":"world" }' // NB: Has enclosing ""
var myobj = JSON.parse(mystr);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #object #javascript
ADD COMMENT
Topic
Name
5+8 =