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

Public Member Functions

Any default (self, Any o)
 

Detailed Description

JSONEncoder that supports Home Assistant objects.

Definition at line 52 of file json.py.

Member Function Documentation

◆ default()

Any homeassistant.helpers.json.JSONEncoder.default (   self,
Any  o 
)
Convert Home Assistant objects.

Hand other objects to the original method.

Reimplemented in homeassistant.helpers.json.ExtendedJSONEncoder.

Definition at line 55 of file json.py.


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