def _convert_to_jsonc(x):
 if isinstance(x, dict):
  jsonc_obj = Jsonc()
  for (key, value) in x.iteritems():
   jsonc_obj._dict[key] = _convert_to_jsonc(value)
  return jsonc_obj
 elif isinstance(x, list):
  members = []
  for item in x:
   members.append(_convert_to_jsonc(item))
  return members
 else:
  return x

def _convert_to_jsonc ( x ) : if isinstance ( x , dict ) : jsonc_obj = Jsonc ( ) for ( key , value ) in x . iteritems ( ) : jsonc_obj . _dict [ key ] = _convert_to_jsonc ( value ) return jsonc_obj elif isinstance ( x , list ) : members = [ ] for item in x : members . append ( _convert_to_jsonc ( item ) ) return members else : return x
builds a jsonc objects which wraps the arguments members .