Interface GraphQLJsonSerializer
- All Known Implementing Classes:
JacksonGraphQLJsonSerializer
public interface GraphQLJsonSerializer
An interface for serializing and deserializing GraphQL objects.
- Since:
- 1.0
- Author:
- Marcel Overdijk
-
Method Summary
-
Method Details
-
serialize
Serializes the given object to a jsonString
.- Parameters:
object
- the object to serialize- Returns:
- the json string
-
deserialize
Deserializes the given jsonString
to an object of the required type.- Type Parameters:
T
- the required generic type- Parameters:
json
- the json stringrequiredType
- the required type- Returns:
- the object
-