Skip to content
diagrams.mbt
DocsArticlesGalleryAPIGitHub

Gallery / JSON

Nested order data

Family: JSON. Status: Implemented.

PlantUML JSON with nested collections, exact numbers and highlighted data.

Scope: Implemented native JSON data-tree rendering and structural exploration.

Preview

Nested order data preview
Nested order data preview (dark)

Source

json-order.puml

text/plain

@startjson
title Order with nested collections
#highlight "items" / "0" / "sku"
{
  "id": 12345678901234567890,
  "paid": true,
  "coupon": null,
  "items": [
    {"sku": "A-1", "qty": 2, "tags": ["gift", "gift"]},
    {"sku": "B-2", "qty": 1, "tags": []}
  ],
  "notes": "A long note wraps inside its row without losing any character of the value text",
  "meta": {}
}
@endjson

Download source: json-order.puml

Download SVG Download dark SVG Open offline player

diagrams.mbt · Diagramming for MoonBit.