Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to parse JSON

var test = JSON.parse('{ "name":"John", "age":30, "city":"New York"}');
console.log('testing parsing', test);

 

i have used this sample josn to parse but i am unable to parse.

 

Can anyone help me to get it right.

 

Thanks in advance

Best Answer
2 REPLIES 2

Hi @DBirnale,

 

Can you confirm the language you are using? Maybe the community will be able to provide you assistance on the best way for parsing JSON after the language is clarified.

 

If you're using javascript, maybe this will help: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse

 

I hope this helps!

 

Best Answer
0 Votes

Yes i am using javascript only.

Best Answer
0 Votes