Read JSON written by serializeJson.
Only the envelope and version are checked here; the model itself is validated by serializeQgs, as for any other model.
Output of serializeJson.
The stored model.
QgsError INVALID_JSON for malformed JSON or a missing envelope, or INVALID_VERSION when written by an incompatible qgserde version (a different major version, or a different minor version before 1.0).
INVALID_JSON
INVALID_VERSION
Read JSON written by serializeJson.
Only the envelope and version are checked here; the model itself is validated by serializeQgs, as for any other model.