en:xjson
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:xjson [2026/06/03 09:18] – administrator | en:xjson [2026/06/03 09:56] (current) – [XJSON] administrator | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| Alternative, | Alternative, | ||
| - | { | + | |
| " | " | ||
| " | " | ||
| - | } | + | |
| Another common data type is binary data, which is commonly used for image. However, we can use the same solution for binary data. | Another common data type is binary data, which is commonly used for image. However, we can use the same solution for binary data. | ||
| - | ===== String notation of datetime and binary. | + | ==== String notation of datetime and binary. ==== |
| The following is a string and object presentasion of DateTime and Binary data. | The following is a string and object presentasion of DateTime and Binary data. | ||
| Line 29: | Line 29: | ||
| * The object presentaion of binary data is " | * The object presentaion of binary data is " | ||
| - | ===== Object notation of datetime and binary. | + | ==== Object notation of datetime and binary. ==== |
| The object presentation of datetime and binary data use a class specifier, _cls. The available _cls are: | The object presentation of datetime and binary data use a class specifier, _cls. The available _cls are: | ||
| Line 65: | Line 65: | ||
| The following is an example of an XJSON object, or a key-value pair dictionary. Note that attribute (or dictionary key) does not needed to be quoted, although you can. You cannot use number as attribute. Attribute must be a single word without space in between. | The following is an example of an XJSON object, or a key-value pair dictionary. Note that attribute (or dictionary key) does not needed to be quoted, although you can. You cannot use number as attribute. Attribute must be a single word without space in between. | ||
| - | { | + | |
| + | | ||
| feedback : 1, | feedback : 1, | ||
| changeset : { | changeset : { | ||
| Line 84: | Line 85: | ||
| locked: F, | locked: F, | ||
| icon: _HA09EFJKI===, | icon: _HA09EFJKI===, | ||
| - | } | + | |
| This is an example for a XJSON for a list instead of an object. It can also be a number or a string too. | This is an example for a XJSON for a list instead of an object. It can also be a number or a string too. | ||
| - | [ 1, 2, " | + | |
| ==== Notes on Boolean ==== | ==== Notes on Boolean ==== | ||
| Line 96: | Line 98: | ||
| ==== Notes on Number ==== | ==== Notes on Number ==== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| ==== Notes on DateTime ==== | ==== Notes on DateTime ==== | ||
| - | | + | |
| - | | + | |
| - | | + | |
| ==== Notes on String ==== | ==== Notes on String ==== | ||
| - | | + | |
| - | | + | |
| ==== Notes on Bytes ==== | ==== Notes on Bytes ==== | ||
en/xjson.1780478326.txt.gzip · Last modified: by administrator
