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:
- STRING
- INTEGER
- REAL
- ARRAY MUST be singly-dimensioned and zero-based.
- TABLE
JSON_DECODE(json_string) accepts a proper subset of JSON with the following limits and omissions:
- arrays must have at least one item.
- escapes can only be used for ASCII (00-7F) characters.
- true and false are not accepted.
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
See Also
Authors
Philip L. Budne
Referenced By
March 31, 2022 CSNOBOL4B 2.3.1 CSNOBOL4 Manual