JSON/CheatSheet: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
< | <syntaxhighlight lang="json"> | ||
{ | { | ||
"name": "User", | "name": "User", | ||
Line 8: | Line 8: | ||
{"name": "Joe", "age": 4, "gender":"M"}, | {"name": "Joe", "age": 4, "gender":"M"}, | ||
{"name": "Jane", "age": 5, "gender":"F"} | {"name": "Jane", "age": 5, "gender":"F"} | ||
] | ], | ||
"cars": [ "golf", "van" ] | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<pre> | |||
\" Double quote | |||
\\ Backslash | |||
\/ Forward slash | |||
\b Backspace | |||
\f Form feed | |||
\n Newline | |||
\r Carriage return | |||
\t Tab | |||
\u Trailed by four hex digits | |||
</pre> |
Revision as of 16:03, 17 May 2024
{
"name": "User",
"age": 21,
"height": 1.83,
"gender": "M",
"children": [
{"name": "Joe", "age": 4, "gender":"M"},
{"name": "Jane", "age": 5, "gender":"F"}
],
"cars": [ "golf", "van" ]
}
\" Double quote \\ Backslash \/ Forward slash \b Backspace \f Form feed \n Newline \r Carriage return \t Tab \u Trailed by four hex digits