def deserialize_field(field, value):
 try:
  deserialized = json.loads(value)
  if (deserialized is None):
   return deserialized
  try:
   field.from_json(deserialized)
   return deserialized
  except (ValueError, TypeError):
   return value
 except (ValueError, TypeError):
  return value

def deserialize_field ( field , value ) : try : deserialized = json . loads ( value ) if ( deserialized is None ) : return deserialized try : field . from_json ( deserialized ) return deserialized except ( ValueError , TypeError ) : return value except ( ValueError , TypeError ) : return value
deserialize the string version to the value stored internally .