Objectif à JSON JavaScript
var person={"first_name":"Tony","last_name":"Hawk","age":31};
var personJSONString=JSON.stringify(person);
Grepper
var person={"first_name":"Tony","last_name":"Hawk","age":31};
var personJSONString=JSON.stringify(person);
JSON.stringify(jsonobj,null,'\t')
JSON.stringify(obj, undefined, 2);
var str = JSON.stringify(obj, null, 2); // spacing level = 2
new JSONObject(json).toString(2)
JSON.stringify(obj, null, 2);