T - the type of the object to convert the JSON Object intopublic class JsonInputConverter<T> extends InputStreamInputConverter<T>
JsonConverter.| Constructor and Description | 
|---|
| JsonInputConverter(java.lang.Class<T> targetClass)Construct a new instance of a JsonInputConverter that is able to convert the data read from the InputStream into
 objects of the specified  targetClass. | 
| Modifier and Type | Method and Description | 
|---|---|
| T | read()Converts a JSON Object that is read from the InputStream into an object and returns it. | 
getInputStream, setInputStreampublic JsonInputConverter(java.lang.Class<T> targetClass)
targetClass.targetClass - The class defining the objects being converted from JSON.public T read()
targetClass in the constructor equals to JsonObject.class, then this method will just return the
 read JSON object directly instead of running the conversion. Otherwise, a JsonConverter will be used to
 convert the JSON Object into the final object to return.