JsonParser
.@Deprecated
public final class JdomParser
extends java.lang.Object
JsonNode
object. Instances of this class can safely be shared
between threads.Constructor and Description |
---|
JdomParser()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
JsonNode |
parse(java.io.Reader reader)
Deprecated.
Replaced by
JsonParser.parse(Reader) . |
JsonNode |
parse(java.lang.String json)
Deprecated.
Replaced by
JsonParser.parse(String) . |
public JsonNode parse(java.lang.String json) throws InvalidSyntaxException
JsonParser.parse(String)
.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, java.io.IOException
JsonParser.parse(Reader)
.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.java.io.IOException
- rethrown when reading characters from in
throws IOException
.