var json_str = `[
{
"type": "people",
"id": "30",
"attributes": {
"name": "John Deo",
"age": 40,
"gender": "male"
}
}
]`;
var minified_json = JSON.stringify(JSON.parse(json_str));
console.log(minified_json);
0 Comments