public static interface JSONContext.Parser
Modifier and Type | Method and Description |
---|---|
<R> R |
parse(Reader reader,
Class<R> type)
Parses a JSON string from the given reader.
|
<R> R parse(Reader reader, Class<R> type) throws ParseException
Parses a JSON string from the given reader.
R
- the type of the resultreader
- the reader to parse fromtype
- the type to cast the result toParseException
- if the JSON is malformedCopyright © 2008–2024 The CometD Project. All rights reserved.