pg.object_utils.from_json¶
Accessible via pg.object_utils.from_json
.
- from_json(json_value, *, force_dict=False, **kwargs)[source]¶
Deserializes a (maybe) JSONConvertible value from JSON value.
- Return type:
- Parameters:
json_value – Input JSON value.
force_dict – If True, “_type” keys will be renamed to “type_name” before loading. As a result, JSONConvertible objects will be returned as dict.
**kwargs – Keyword arguments that will be passed to JSONConvertible.__init__.
- Returns:
Deserialized value.