Add deserializing to JSON