jetblack_serialization¶
module jetblack_serialization.json ¶
Summary¶
JSON Serialization
function jetblack_serialization.json.deserialize ¶
Summary¶
Convert JSON to an object
jetblack_serialization.json.deserialize(
text: str,
annotation: Annotation,
config: SerializerConfig
) -> AnyParameters¶
text: strThe JSON string
annotation: AnnotationThe type annotation
config: SerializerConfigThe serializer configuration
function jetblack_serialization.json.from_json_value ¶
Summary¶
Convert from a json value
jetblack_serialization.json.from_json_value(
config: SerializerConfig,
json_value: Any,
annotation: Annotation
) -> AnyParameters¶
config: SerializerConfigThe serialier configuration
json_value: AnyThe JSON value
annotation: AnnotationThe type annotation
function jetblack_serialization.json.serialize ¶
Summary¶
Convert the object to JSON
jetblack_serialization.json.serialize(
obj: Any,
annotation: Annotation,
config: SerializerConfig
) -> strParameters¶
obj: AnyThe object to convert
annotation: AnnotationThe type annotation
config: SerializerConfigThe serializer configuration
class JSONProperty(JSONAnnotation) ¶
Summary¶
A JSON property
jetblack_serialization.json.JSONProperty(
tag: str
) -> Noneclass JSONValue(JSONAnnotation) ¶
Summary¶
A JSON property
jetblack_serialization.json.JSONValue() -> None