sortyra.com/glossary/what-is-json-format

What is JSON? An explanation and a product example – Sortyra

Markdownllms.txtai-catalog.jsonSKILL.mdauth.md
# What is JSON? An explanation and a product example – Sortyra

> JSON is a simple text format for data used by apps, APIs and some product feeds. What it looks like, how it differs from XML and what to watch out for.

Source: <https://sortyra.com/glossary/what-is-json-format>

---

[Sortyra](https://sortyra.com/) [Glossary](https://sortyra.com/glossary) [I – L](https://sortyra.com/glossary/i-l)

# JSON

Sortyra team · May 8, 2026 · 2 min read

[Glossary](https://sortyra.com/glossary)

[A – D](https://sortyra.com/glossary/a-d) [E – H](https://sortyra.com/glossary/e-h) [I – L](https://sortyra.com/glossary/i-l) [M – P](https://sortyra.com/glossary/m-p) [Q – T](https://sortyra.com/glossary/q-t) [U – X](https://sortyra.com/glossary/u-x)

- [identifier_exists](https://sortyra.com/glossary/identifier-exists-google-feed)
- [item_group_id (variant group)](https://sortyra.com/glossary/item-group-id-product-variants)
- [Landing page](https://sortyra.com/glossary/what-is-a-landing-page)
- [Locked field](https://sortyra.com/glossary/locked-field-manual-override)

JSON (JavaScript Object Notation) is a text format for writing data as "name: value" pairs. People and computers can both read it, and it is used mainly when apps talk to each other through an API. Some suppliers also send their product list in it, much like XML or CSV.

**In this article**

1. What is JSON
2. What it looks like in a feed
3. What it is used for
4. What to watch out for
5. How Sortyra helps
6. Related terms
7. Frequently asked questions

## What is JSON

JSON is like a filled-in form: every field has a name and a value. The form can also contain smaller forms (an address, for example) and lists (several images, for example).

The basic building blocks:

- **Object** in curly brackets `{ }` – a group of `"name": value` pairs.
- **Array** in square brackets `[ ]` – several values in a row.
- **Values** – text in quotation marks, a number, `true`/`false` or `null` (empty).

A variant is **JSON Lines** (also NDJSON): every line of the file is one separate object, that is, one product. Such a file can be read line by line even with hundreds of thousands of products.

## What it looks like in a feed

`[ { "id": "STAN-3P", "title": "Trailo Dome 3 tent for 3 people", "price": 149.90, "currency": "EUR", "ean": "8581234567894", "in_stock": true, "images": [ "https://www.sortyra.com/img/dome-3.jpg", "https://www.sortyra.com/img/dome-3-vnutro.jpg" ] } ]`

A list with one product: ID, name, price, EAN, availability and two images. Every supplier chooses its own field names.

## What it is used for

- **APIs** – online shops, marketplaces and advertising platforms almost always exchange data in JSON.
- **Supplier feeds** – some wholesalers offer a product export in JSON instead of XML.
- **Webhooks and settings** – notifications between systems and backups of settings.

Price comparison sites such as Heureka or Zboží and Google Merchant Center usually expect XML or a text file for feeds, not JSON.

## What to watch out for

- **Commas and brackets** – a missing comma, or an extra comma after the last item, makes the whole file unreadable.
- **Quotation marks** – names and texts must be in straight double quotation marks `"`, not typographic ones.
- **Number or text** – an EAN written as a number can lose its leading zeros; it is safer to write it as text.
- **No fixed standard for products** – two JSON feeds from two suppliers almost always use different field names.

## How Sortyra helps

As a source, Sortyra reads JSON and JSON Lines in any structure and recognises the fields by name and by content. As an output you can choose the **Custom JSON** format. You can download your rules and upload them as a JSON file, and the [REST API](https://sortyra.com/knowledge-base/rest-api-product-feeds) and [webhooks](https://sortyra.com/glossary/what-is-a-webhook) both communicate in JSON.

## Related terms

- [XML](https://sortyra.com/glossary/what-is-an-xml-file)
- [CSV](https://sortyra.com/glossary/what-is-a-csv-file)
- [API](https://sortyra.com/glossary/what-is-an-api)
- [Webhook](https://sortyra.com/glossary/what-is-a-webhook)
- [Field mapping](https://sortyra.com/glossary/data-mapping)
- More detail: [Feed types: XML, CSV, TSV, JSON](https://sortyra.com/knowledge-base/feed-types-xml-csv-json)

## Frequently asked questions

### Is JSON or XML better?

Neither is better in general. What matters is what the channel accepts – comparison sites mostly want XML, while APIs work with JSON.

### How do I open a JSON file?

In any text editor. A browser or a code editor that highlights the structure will show it more clearly.

### What is JSON Lines?

A file with one separate JSON object on every line. It suits large product lists.

[← Previous article **item_group_id (variant group)**](https://sortyra.com/glossary/item-group-id-product-variants) [Next article → **Landing page**](https://sortyra.com/glossary/what-is-a-landing-page)

## Try it on your own feed

[Try it free](https://app.sortyra.com/registracia?lang=en) [Book a 15-min call](https://sortyra.com/contact)