snobol4json - Man Page

JSON Encoding and Decoding

Synopsys

-INCLUDE 'json.sno'
      string = JSON_ENCODE(data)
      data = JSON_DECODE(string)

Description

JSON_ENCODE(data) accepts a subset of SNOBOL4 data types:

JSON_DECODE(json_string) accepts a proper subset of JSON with the following limits and omissions:

NOTE!!! JSON is defined to use UTF-8 encoding, but this is not enforced by this library.  To exchange binary data with other software which may enforce use of only UTF-8 sequences, the binary strings should be encoded (eg with base64) to ASCII sequences.

Compatibility

https://tools.ietf.org/html/rfc8259

See Also

snobol4(1), snobol4base64(3)

Authors

Philip L. Budne

Referenced By

snolib(3).

March 31, 2022 CSNOBOL4B 2.3.1 CSNOBOL4 Manual