def json_loads(obj, keys=None):
 if (not obj):
  return None
 if (not keys):
  keys = obj.keys()
 for key in keys:
  try:
   obj[key] = json.loads(obj[key])
  except:
   pass
 return obj

def json_loads ( obj , keys = None ) : if ( not obj ) : return None if ( not keys ) : keys = obj . keys ( ) for key in keys : try : obj [ key ] = json . loads ( obj [ key ] ) except : pass return obj
given an object .