JSON Forge
100% Client-Side: your data is never sent to a server

JSON examples

Weather API JSON Example

A weather service typically returns the location, the current conditions and a short forecast. All numbers below are invented.

Loading editor…
Paste or type JSON on the left to explore it as a tree.
Empty🔒 Processed locally in your browser

The example

The JSON above is the example. Explore it in the Tree tab, press Download to save it as a .json file, or Share to send someone a link to it. All names, ids, emails and values are invented.

Fields explained

PathTypeNotes
locationobjectPlace details including the timezone name.
currentobjectA snapshot of the conditions now.
forecastarray of objectsOne entry per day, ideal for a chart.
unitsobjectStating units explicitly avoids misreading 12 as Celsius or Fahrenheit.

Read it in code

JavaScript:

const highs = data.forecast.map((d) => d.maxC); // [12, 10, 9]

Python:

highs = [d["maxC"] for d in data["forecast"]]  # [12, 10, 9]

What this example is good for

Tips

Convert this example

Open it in a converter, then switch the output in the Code tab:

More examples

All JSON examples · Cheat sheets