Home Assistant Unofficial Reference 2024.12.1
json.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.helpers.json.ExtendedJSONEncoder
 
class  homeassistant.helpers.json.JSONEncoder
 

Namespaces

 homeassistant.helpers.json
 

Functions

bytes homeassistant.helpers.json._orjson_bytes_default_encoder (Any data)
 
str homeassistant.helpers.json._orjson_default_encoder (Any data)
 
Any homeassistant.helpers.json._strip_null (Any obj)
 
dict[str, Any] homeassistant.helpers.json.find_paths_unserializable_data (Any bad_data, *Callable[[Any], str] dump=json.dumps)
 
bytes homeassistant.helpers.json.json_bytes (Any obj)
 
bytes homeassistant.helpers.json.json_bytes_strip_null (Any data)
 
str homeassistant.helpers.json.json_dumps (Any data)
 
str homeassistant.helpers.json.json_dumps_sorted (Any data)
 
Any homeassistant.helpers.json.json_encoder_default (Any obj)
 
None homeassistant.helpers.json.save_json (str filename, list|dict data, bool private=False, *type[json.JSONEncoder]|None encoder=None, bool atomic_writes=False)
 

Variables

 homeassistant.helpers.json.__all__
 
 homeassistant.helpers.json.__dir__
 
 homeassistant.helpers.json.__getattr__
 
 homeassistant.helpers.json._DEPRECATED_JSON_DECODE_EXCEPTIONS
 
 homeassistant.helpers.json._DEPRECATED_JSON_ENCODE_EXCEPTIONS
 
 homeassistant.helpers.json._LOGGER
 
 homeassistant.helpers.json.breaks_in_ha_version
 
 homeassistant.helpers.json.check_if_deprecated_constant
 
 homeassistant.helpers.json.default = json_encoder_default,
 
 homeassistant.helpers.json.dir_with_deprecated_constants
 
 homeassistant.helpers.json.dumps
 
 homeassistant.helpers.json.json_bytes
 
 homeassistant.helpers.json.json_bytes_sorted
 
 homeassistant.helpers.json.json_fragment
 
 homeassistant.helpers.json.json_loads
 
 homeassistant.helpers.json.module_globals
 
 homeassistant.helpers.json.module_globals_keys
 
 homeassistant.helpers.json.OPT_NON_STR_KEYS
 
 homeassistant.helpers.json.option = orjson.OPT_NON_STR_KEYS | orjson.OPT_SORT_KEYS,