Display JSON Data

JSON широко применяется в программном обеспечении.

Вы можете использовать PlantUML для визуализации ваших данных.

Чтобы активировать эту возможность, диаграмма должна:

🛈 *If you are looking for how to manipulate and manage JSON data on PlantUML: see rather [Preprocessing JSON](preprocessing-json).*

Complex example

You can use complex JSON structure.

Highlight parts

Using different styles for highlight

It is possible to have different styles for different highlights.

[Ref. QA-15756, GH-1393]

JSON basic element

Synthesis of all JSON basic element

JSON array or table

Array type

Minimal array or table

Number array

String array

Boolean array

JSON numbers

JSON strings

JSON Unicode

On JSON you can use Unicode directly or by using escaped form like \uXXXX.

JSON two-character escape sequence

FIXME
FIXME or not 😉, on the same item as \n management in PlantUML 😉 See Report Bug on QA-13066
FIXME

Minimal JSON examples

(Examples come from STD 90 - Examples)

Empty table or list

[Ref. QA-14397]

Using (global) style

Without style (by default)

With style

You can use style to change rendering of elements.

[Adapted from QA-13123 and QA-13288]

Display JSON Data on Class or Object diagram

Simple example

[Ref. QA-15481]

Complex example: with all JSON basic element

Display JSON Data on Deployment (Usecase, Component, Deployment) diagram

Simple example

[Ref. QA-15481]

Complex example: with arrow

Display JSON Data on State diagram

Simple example

[Ref. QA-17275]

Creole on JSON

You can use Creole or HTML Creole on JSON diagram: