public final class JdomParser
extends java.lang.Object
JsonNode
object. Instances of this class can safely be shared
between threads.Constructor and Description |
---|
JdomParser() |
Modifier and Type | Method and Description |
---|---|
JsonNode |
parse(java.io.Reader reader)
Parse the character stream from the specified
Reader into a JsonNode object. |
JsonNode |
parse(java.lang.String json)
Parse the specified JSON
String into a JsonNode object. |
public JsonNode parse(java.lang.String json) throws InvalidSyntaxException
String
into a JsonNode
object.json
- the String
to parse.JsonNode
representing the JSON read from the specified String
.InvalidSyntaxException
- if the characters streamed from the specified String
does not represent valid JSON.public JsonNode parse(java.io.Reader reader) throws InvalidSyntaxException
Reader
into a JsonNode
object.reader
- the Reader
to parse.JsonNode
representing the JSON read from the specified Reader
.InvalidSyntaxException
- if the characters streamed from the specified Reader
does not represent valid JSON.