JavaScript JSON
<!DOCTYPE html> <html> <body> <h2>Parsing JSON</h2> <script> const text = '{"name": "Ada", "age": 36, "active": true}'; const user = JSON.parse(text); console.log(user.name); // "Ada" console.log(user.age); // 36 console.log(typeof user); // "object" </script> </body> </html>