Skip to main content
100%

Gist 58ea1113852500390cf7cb5f0bd2d88c

✓ Published0🌍 Public
MMistyBlunch
Last edited Jun 13, 2018
Created on Jun 13, 2018

This example demonstrates two JavaScript methods for converting between JavaScript objects and JSON format. It uses the native `JSON.parse()` function to transform a JSON string into an object, then accesses its properties to display "John, 30" via `document.getElementById().innerHTML`. A second example uses `JSON.stringify()` to convert a JavaScript array of names into a JSON string for output. The code relies on standard JavaScript APIs and renders results directly into HTML elements, illustrating basic data serialization without external libraries.

AI-generated description

Similar vizzes