🧩
New! Render PlantUML diagrams directly inside GitHub with our official browser extension — No server. No tokens. No tracking. Zero permissions but clipboard. — Try it out and let us know what you think!

JSONデータを表示する

JSON形式は、様々なソフトウェアで使われています。

PlantUMLを使ってJSONデータを可視化することができます。

この機能を使うには、

🛈 If you are looking for how to manipulate and manage JSON data on PlantUML: see rather Preprocessing JSON.
WARNING
 This translation need to be updated. 
WARNING

複雑な例

複雑なJSON構造を使用することができます。

一部をハイライトする

Using different styles for highlight

It is possible to have different styles for different highlights.

[Ref. QA-15756, GH-1393]

JSONの基本要素

すべてのJSON基本要素の例

JSON配列またはテーブル

配列型

シンプルな配列またはテーブル

Number配列

String配列

Boolean配列

number型

string型

Unicode

JSONではUnicodeを直接記述するか、\uXXXXのような形式でエスケープして記述することができます。

2文字のエスケープシーケンス

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

最小のJSONの例

(Examples come from STD 90 - Examples)

Empty table or list

[Ref. QA-14397]

スタイルを使用する

スタイル無し(デフォルト)

スタイル有り

スタイルを指定して、要素の見た目を変更することができます。

[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: