Avatar

Correct answer by
Community Advisor

Hello jagadeeshk20781937

You can try JS built in JSON

So I would add,

var jsonObj;

try{

jsonObj = JSON.parse(resp.body.toString());

//do whatever you want

//when saving to db

var jsonStr = JSON.stringify(jsonObj);

}catch(e){

     //nok

}

Marcel

View solution in original post