core/parser/json_parser library

Classes

JsonParser
Parses JSON into a tree of WidgetDescriptor. Supports optional schemaVersion and ui wrapper. Normalizes to children for layout nodes. Validates schemaVersion when present; backward compatibility within major version.
ParsedUi
Result of parsing root JSON (may include schemaVersion and ui wrapper).
WidgetDescriptor
Descriptor for a single widget node in the JSON tree.

Constants

supportedSchemaVersions → const List<String>
Supported schema versions. If schemaVersion is present in JSON and not in this list, JsonParser.parseMap throws JsonParserException.

Exceptions / Errors

JsonParserException