Add docs/JSON.md from Claro v1.17.26 zip
This commit is contained in:
@@ -0,0 +1,20 @@
|
|||||||
|
# JSON in Claro
|
||||||
|
|
||||||
|
## Parse JSON text
|
||||||
|
```claro
|
||||||
|
PARSE JSON myText AS value
|
||||||
|
```
|
||||||
|
|
||||||
|
If JSON is invalid, Claro reports the character offset and a short snippet near the error.
|
||||||
|
|
||||||
|
## Make JSON text
|
||||||
|
```claro
|
||||||
|
MAKE JSON value AS text
|
||||||
|
```
|
||||||
|
|
||||||
|
### Pretty JSON
|
||||||
|
```claro
|
||||||
|
MAKE JSON PRETTY value AS text
|
||||||
|
```
|
||||||
|
|
||||||
|
Pretty output is easier to read for config files and debugging.
|
||||||
Reference in New Issue
Block a user