Package org.cometd.common
Interface JSONContext.Parser
-
- Enclosing interface:
- JSONContext<T extends org.cometd.bayeux.Message.Mutable>
public static interface JSONContext.ParserA blocking JSON parser.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <R> Rparse(Reader reader, Class<R> type)Parses a JSON string from the given reader.
-
-
-
Method Detail
-
parse
<R> R parse(Reader reader, Class<R> type) throws ParseException
Parses a JSON string from the given reader.
- Type Parameters:
R- the type of the result- Parameters:
reader- the reader to parse fromtype- the type to cast the result to- Returns:
- the result of the JSON parsing
- Throws:
ParseException- if the JSON is malformed
-
-