CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
esMonitoring.JsonEncoder Class Reference
Inheritance diagram for esMonitoring.JsonEncoder:

Public Member Functions

def default
 

Detailed Description

Definition at line 19 of file esMonitoring.py.

Member Function Documentation

def esMonitoring.JsonEncoder.default (   self,
  obj 
)

Definition at line 20 of file esMonitoring.py.

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