handle serialized and json fields