Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

string to .json

Copy 
1const jsonStr = '{"name":"Infinitbility","gender":"male"}';
2const jsonObj = JSON.parse(jsonStr);
3console.log(jsonObj); // {name: 'Infinitbility', gender: 'male'}
4console.log(jsonObj.name); // Infinitbility
Source by infinitbility.com #
 
PREVIOUS NEXT
Tagged: #string
ADD COMMENT
Topic
Name
5+5 =