HTML Starter
✓ Published0🌍 Public
This example demonstrates how to parse and display JSON data on a webpage using standard JavaScript APIs. It shows a static, formatted JSON object containing car records (with fields such as make, model, year, and price) rendered inside a `<pre>` element for readability. The code uses `JSON.parse` to convert a string of car data into a JavaScript object, then `JSON.stringify` with indentation to format it for display. While a commented-out import suggests potential use of the `cars.js` module, the active script only processes an inline JSON string, leaving the imported data unused.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed