An interface which is implemented by the JSON implementation.
Type Params | Return Type | Name and description |
---|---|---|
|
Map<String, Object> |
decode(InputStream data) Parse the representation from the input stream. |
|
InputStream |
encode(Map<String, Object> repr) Write the representation to a stream. |
Parse the representation from the input stream.
data
- The UTF-8 JSON data.Write the representation to a stream.
repr
- Java representation of the JSON to be written.