Skip to content
BENIBIX Learn

Semi-Structured Data

Data🧭 FoundationsTypes of Data

Data with labels but no fixed shape. JSON is the best known kind.

Think of it like

It is like a box of labeled jars. Each jar has a name tag, but the jars are not all the same.

Example

One order record holds a gift note, and the next one does not. Both are still valid JSON.

Why it matters

Apps and APIs speak JSON. Most new data arrives in this shape before anyone puts it in a table.

Definition

Semi-structured data has labels but no fixed table shape. Each record names its own fields, so two records can hold different fields. Records can also nest, with a list or a group inside a field. JSON, XML and log lines are common kinds. It is easy to write but takes more work to query.

Example code

json
{"id": 42, "total": 19.5,
 "items": [{"sku": "A1", "qty": 2}],
 "gift_note": "Happy birthday"}
One order. The fields name themselves, and the items sit nested inside it.

Common mistake

Calling it unstructured. It has a shape, just not one fixed for every record.

Key takeaways

  1. 1
    Self-describing. Each record names its own fields.
  2. 2
    Flexible. Records may hold different fields.
  3. 3
    Nested. Lists and groups can sit inside fields.

Learn it properly