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

JSON examples

Product Catalog JSON Example

A small store catalog with products, optional variants and nested dimensions. It is useful for building product lists, filters and cart logic against realistic data.

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
currencystringAn ISO 4217 code such as EUR. State it once for the whole document.
products[].skustringStock keeping unit, a stable identifier for each product.
products[].pricenumberShown as a decimal here; see the tip about money.
products[].variantsarrayEmpty when a product has no options.
products[].dimensionsobjectGrouped measurements with the unit in the key name.

Read it in code

JavaScript:

const inStock = data.products.filter((p) => p.inStock).map((p) => p.name);

Python:

in_stock = [p["name"] for p in data["products"] if p["inStock"]]

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