Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert json string into json object


const jsonString = '{ "key": "value", "key2": ["a","b"] }';
const obj = JSON.parse( jsonString );

alert( obj.key );     // "value"
alert( obj.key2[1] ); // "b"
 
PREVIOUS NEXT
Tagged: #convert #json #string #json #object
ADD COMMENT
Topic
Name
7+8 =