Answers for "nodejs string to json object"

2

node string to json

const json = '{"result":true, "count":42}';
const obj = JSON.parse(json);
Posted by: Guest on April-08-2021
6

js string to json

var obj = JSON.parse("{no:'u',my:'sql'}");//returnes {no:'u',my:'sql'}
Posted by: Guest on April-08-2020

Code answers related to "nodejs string to json object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language