JSON Parse
<!DOCTYPE html> <html> <body> <h2>Result</h2> <p id="demo"></p> <script> const jsonText = '{"name": "Kenji", "age": 34, "active": true}'; const user = JSON.parse(jsonText); console.log(user.name); // "Kenji" console.log(user.age); // 34 console.log(typeof user); // "object" </script> </body> </html>