var my_object = { "name" : "John", "age " : "31" }; var my_object_stringified = JSON.stringify(my_object); console.log(my_object_stringified); var my_object_stringified_to_json = JSON.parse(my_object_stringified); console.log(my_object_stringified_to_json);
Questions et réponses sur Javascript