Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.json.ExtendedJSONEncoder Class Reference
Inheritance diagram for homeassistant.helpers.json.ExtendedJSONEncoder:
[legend]
Collaboration diagram for homeassistant.helpers.json.ExtendedJSONEncoder:
[legend]

Public Member Functions

Any default (self, Any o)
 

Detailed Description

JSONEncoder that supports Home Assistant objects and falls back to repr(o).

Definition at line 102 of file json.py.

Member Function Documentation

◆ default()

Any homeassistant.helpers.json.ExtendedJSONEncoder.default (   self,
Any  o 
)
Convert certain objects.

Fall back to repr(o).

Reimplemented from homeassistant.helpers.json.JSONEncoder.

Definition at line 105 of file json.py.


The documentation for this class was generated from the following file: