- Index
- »
- io
- »
- func:ioWriteJson
def
func:ioWriteJson
ioWriteJson(val, handle, opts: null)
Write an Axon data structure to JSON. By default, Haystack 4 (Hayson) encoding is used. The val
may be:
- One of the SkySpark types that can be mapped to JSON. See Json for type mapping.
The following options are supported:
- noEscapeUnicode: do not escape characters over 0x7F
- v3: Encode JSON using Haystack 3 encoding
- v4: Explicitly encode with Haystack 4 encoding (default)