Reference Codebot.Text.Json.pas
Part of the Codebot package
The Codebot.Text.Json unit reads and writes JSON. TJsonNode parses, builds, and navigates a JSON document. Each node is an object, array, boolean, null, number, or string, and the nodes inside an object or array can be accessed by name or index, or enumerated using a for in loop.
The unit also provides routines that validate JSON, encode and decode JSON strings, and convert JSON to XML.
Items 49 items
| Name | Kind | Line |
|---|---|---|
| EJsonException | class | 24 |
| JsonNumberValidate | function | 197 |
| JsonStringDecode | function | 203 |
| JsonStringEncode | function | 201 |
| JsonStringValidate | function | 199 |
| JsonToXml | function | 205 |
| JsonValidate | function | 195 |
| TJsonNode | class | 79 |
| Add | function | 134, 135, 136, 137, 139 |
| Child | function | 148, 150 |
| Clear | procedure | 144 |
| Delete | procedure | 141, 142 |
| Destroy | destructor | 112 |
| Exists | function | 152 |
| Find | function | 154, 156 |
| Force | function | 158 |
| GetEnumerator | function | 114 |
| LoadFromFile | procedure | 120 |
| LoadFromStream | procedure | 116 |
| Parse | procedure | 125 |
| SaveToFile | procedure | 122 |
| SaveToStream | procedure | 118 |
| ToString | function | 160 |
| TryParse | function | 127 |
| AsArray | property | 181 |
| AsBoolean | property | 187 |
| AsJson | property | 179 |
| AsNull | property | 185 |
| AsNumber | property | 191 |
| AsObject | property | 183 |
| AsString | property | 189 |
| Count | property | 174 |
| Kind | property | 167 |
| Name | property | 169 |
| Parent | property | 164 |
| Root | property | 162 |
| Value | property | 171 |
| TJsonNodeEnumerator | record | 46 |
| GetCurrent | function | 54 |
| Init | procedure | 52 |
| MoveNext | function | 56 |
| Current | property | 58 |
| TJsonNodeKind | enum | 28 |
| nkObject | enum value | 30 |
| nkArray | enum value | 32 |
| nkBool | enum value | 34 |
| nkNull | enum value | 36 |
| nkNumber | enum value | 38 |
| nkString | enum value | 40 |