crop_rotate
Run
<!DOCTYPE html> <html> <body> <h2>Convert a JSON string into a JavaScript object.</h2> <p id="demo"></p> <script> const myJSON = '{"name":"Ahmed", "age":31, "city":"Cairo"}'; const myObj = JSON.parse(myJSON); document.getElementById("demo").innerHTML = myObj.name; </script> </body> </html>
Convert a JSON string into a JavaScript object.