CMS 3D CMS Logo

List of all members | Public Member Functions
esMonitoring.JsonEncoder Class Reference
Inheritance diagram for esMonitoring.JsonEncoder:

Public Member Functions

def default (self, obj)
 

Detailed Description

Definition at line 19 of file esMonitoring.py.

Member Function Documentation

◆ default()

def esMonitoring.JsonEncoder.default (   self,
  obj 
)

Definition at line 20 of file esMonitoring.py.

20  def default(self, obj):
21  if hasattr(obj, 'to_json'):
22  return obj.to_json()
23 
24  return json.JSONEncoder.default(self, obj)
25