code: def class_to_json(obj):
      
  
      obj_raw = serialize(obj)
  
      return json.dumps(obj_raw, indent=_JSON_INDENT, sort_keys=True)
docs: :type obj: int|str|bool|float|bytes|unicode|list|dict|object
  
      :rtype: int|str|bool|list|dict