Class JsonNodeParser
java.lang.Object
software.amazon.smithy.model.loader.JsonNodeParser
Parses JSON text into a
Node.-
Method Summary
-
Method Details
-
parse
Parses a complete JSON document into aNode.- Parameters:
filename- Filename used for source locations.content- JSON text to parse.allowComments- Whether//line comments are permitted.- Returns:
- the parsed Node.
- Throws:
ModelSyntaxException- if the JSON is malformed.
-
parse
Parses a complete JSON document from a reader into aNode.- Parameters:
filename- Filename used for source locations.reader- JSON character stream to parse.allowComments- Whether//line comments are permitted.- Returns:
- the parsed Node.
- Throws:
ModelSyntaxException- if the JSON is malformed.
-