This commit is contained in:
Philippe Torrel
2026-07-08 11:55:05 +02:00
parent cc3dc382ed
commit 199d580016
247 changed files with 38615 additions and 13 deletions

View File

@@ -41,8 +41,12 @@ F. Scott Fitzgerald
};
// JSON String
const bookStr = JSON.stringify(book, '', 2);
console.log(bookStr);
// JS Object
const bookObj = JSON.parse(bookStr);
console.log(bookObj.title); // => 'The Great Gatsby'
console.log(bookObj.author); // => 'F. Scott Fitzgerald'