Display JSON Data
JSON format is widely used in software. You can use PlantUML to visualize your data. To activate this feature, the diagram must:- begin with
@startjsonkeyword - end with
@endjsonkeyword.
|
🎉 Copied!
|
|
🛈 If you are looking for how to manipulate and manage JSON data on PlantUML: see rather Preprocessing JSON.
Complex example
You can use complex JSON structure.
|
🎉 Copied!
|
|
Highlight parts
|
🎉 Copied!
|
|
Using different styles for highlight
It is possible to have different styles for different highlights.
|
🎉 Copied!
|
|
[Ref. QA-15756, GH-1393]
JSON basic element
Synthesis of all JSON basic element
|
🎉 Copied!
|
|
JSON array or table
Array type
|
🎉 Copied!
|
|
Minimal array or table
Number array
|
🎉 Copied!
|
|
String array
|
🎉 Copied!
|
|
Boolean array
|
🎉 Copied!
|
|
JSON numbers
|
🎉 Copied!
|
|
JSON strings
JSON Unicode
On JSON you can use Unicode directly or by using escaped form like\uXXXX.
|
🎉 Copied!
|
|
JSON two-character escape sequence
|
🎉 Copied!
|
|
FIXME
FIXME or not 😉, on the same item as \n management in PlantUML 😉
See Report Bug on QA-13066
FIXME
|
🎉 Copied!
|
|
Minimal JSON examples
|
🎉 Copied!
|
|
|
🎉 Copied!
|
|
|
🎉 Copied!
|
|
(Examples come from STD 90 - Examples)
Empty table or list
|
🎉 Copied!
|
|
[Ref. QA-14397]
Using (global) style
Without style (by default)
|
🎉 Copied!
|
|
With style
You can use style to change rendering of elements.
|
🎉 Copied!
|
|
[Adapted from QA-13123 and QA-13288]
Display JSON Data on Class or Object diagram
Simple example
|
🎉 Copied!
|
|
[Ref. QA-15481]
Complex example: with all JSON basic element
|
🎉 Copied!
|
|
Display JSON Data on Deployment (Usecase, Component, Deployment) diagram
Simple example
|
🎉 Copied!
|
|
[Ref. QA-15481] Complex example: with arrow
|
🎉 Copied!
|
|
Display JSON Data on State diagram
Simple example
|
🎉 Copied!
|
|
[Ref. QA-17275]
Creole on JSON
You can use Creole or HTML Creole on JSON diagram:
|
🎉 Copied!
|
|