JsonParser¶
-
class
xsdata.formats.dataclass.parsers.
JsonParser
(context=<factory>)[source]¶ Json parser for dataclasses.
- Parameters
context (
XmlContext
) – Model context provider
-
from_path
(path, clazz=None)[source]¶ Parse the input file path and return the resulting object tree.
-
parse
(source, clazz=None)[source]¶ Parse the JSON input stream and return the resulting object tree.
-
bind_dataclass_union
(value, var)[source]¶ Bind data to all possible models and return the best candidate.
-
bind_choice_simple
(value, var)[source]¶ Bind data to one of the simple choice types and return the first that succeeds.