Saturday, 3 February 2018

Parse JSON alike data in NodeJS

I am getting a return from an API call through NodeJS as data similar to JSON.I am getting the reply as:{ abc: 10, qwe: 5 } If the above was as shown below:{ "abc": 10, "qwe": 5 } I could have used JSON.parse function, but the former can't be used with JSON.parse.Is there any way I can get the value of qwe from that response?

Submitted February 03, 2018 at 07:59PM by Remedcu

No comments:

Post a Comment