zig.com Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h2>Creating an Object from a JSON Literal</h2>
<p id="demo"></p>
<script>
  const myObj = { "name": "John", "age": 30, "car": null };
  document.getElementById("demo").innerHTML = myObj.name;
</script>
</body>
<!-- /js/tryit.asp?filename=tryjson_object_literal  Thu, 06 Feb 2025 19:15:40 GMT -->
</html>