Multilingual Wiki Documentation

You are currently using syntax.
In an attempt to improve PlantUML documentation...
Please do not use this website for your own diagrams.
You can click here and use the online server here for your own documentation.

Back to page content

Changes

Japanese version English version
## string型

### Unicode

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

<plantuml>
@startjson
{
"<color:blue><b>code": "<color:blue><b>value",
"a\\u005Cb": "a\u005Cb",
"\\uD83D\\uDE10": "\uD83D\uDE10",
"��": "��"
}
@endjson
</plantuml>

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

<plantuml>
@startjson
{
"**legend**: character name": ["**two-character escape sequence**", "example (between 'a' and 'b')"],
"quotation mark character (U+0022)": ["\\\"", "a\"b"],
"reverse solidus character (U+005C)": ["\\\\", "a\\b"],
"solidus character (U+002F)": ["\\\/", "a\/b"],
"backspace character (U+0008)": ["\\b", "a\bb"],
"form feed character (U+000C)": ["\\f", "a\fb"],
"line feed character (U+000A)": ["\\n", "a\nb"],
"carriage return character (U+000D)": ["\\r", "a\rb"],
"character tabulation character (U+0009)": ["\\t", "a\tb"]
}
@endjson
</plantuml>


[[#661111#FIXME]]
FIXME or not ��, on the same item as `\\n` management in PlantUML ��
[[#661111#FIXME]]
<plantuml>
@startjson
[
"\\\\",
"\\n",
"\\r",
"\\t"
]
@endjson
</plantuml>
## JSON strings

### JSON Unicode

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

<plantuml>
@startjson
{
"<color:blue><b>code": "<color:blue><b>value",
"a\\u005Cb": "a\u005Cb",
"\\uD83D\\uDE10": "\uD83D\uDE10",
"��": "��"
}
@endjson
</plantuml>

### JSON two-character escape sequence

<plantuml>
@startjson
{
"**legend**: character name": ["**two-character escape sequence**", "example (between 'a' and 'b')"],
"quotation mark character (U+0022)": ["\\\"", "a\"b"],
"reverse solidus character (U+005C)": ["\\\\", "a\\b"],
"solidus character (U+002F)": ["\\\/", "a\/b"],
"backspace character (U+0008)": ["\\b", "a\bb"],
"form feed character (U+000C)": ["\\f", "a\fb"],
"line feed character (U+000A)": ["\\n", "a\nb"],
"carriage return character (U+000D)": ["\\r", "a\rb"],
"character tabulation character (U+0009)": ["\\t", "a\tb"]
}
@endjson
</plantuml>


[[#661111#FIXME]]
FIXME or not ��, on the same item as `\\n` management in PlantUML ��
*See [Report Bug on QA-13066](https://forum.plantuml.net/13066)*
[[#661111#FIXME]]
<plantuml>
@startjson
[
"\\\\",
"\\n",
"\\r",
"\\t"
]
@endjson
</plantuml>


Please report any bugs to plantuml@gmail.com or here.
This website is still in beta testing.