Limitations when parsing JSON strings
The format of the JSON string supported by this library is based on the following specifications.
[RFC4627] The application/json Media Type for JavaScript Object Notation (JSON)
However, the process of reading and parsing an JSON string has the following limitations:
- Jansson only supports UTF-8 encoded JSON texts. It does not support or auto-detect any of the other encodings mentioned in the RFC, namely UTF-16LE, UTF-16BE, UTF-32LE or UTF-32BE. Pure ASCII is supported, as it’s a subset of UTF-8.
Limitations when outputting JSON strings
- When converting an JSON object to an JSON string, it is encoded in UTF-8. It cannot be output in other encodings.
Reference
See below for details on other restrictions.
Last updated: 2022/01/26