Package eu.europa.esig.json
Class JSONParser
java.lang.Object
eu.europa.esig.json.JSONParser
Parses a JSON document and returns a Java object representing the parsed result
This class does not perform validation against a JSON schema.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParsesFileand returns aJsonObjectWrapperif applicableParsesInputStreamagainst a schema withURIidentifier and returns aJsonObjectWrapperif applicableparse(InputStream inputStream) ParsesInputStreamand returns aJsonObjectWrapperif applicableparse(InputStream inputStream, URI uri) ParsesInputStreamagainst a schema withURIand returns aJsonObjectWrapperif applicableprotected JsonObjectWrapperParses the JSON string and returns aJsonObjectWrapperprotected JsonObjectWrapperParses the JSON string with the provided schemauriidentifier, and returns aJsonObjectWrapper.
-
Constructor Details
-
JSONParser
public JSONParser()Empty constructor
-
-
Method Details
-
parse
Parses the JSON string and returns aJsonObjectWrapper- Parameters:
json-Stringto parse- Returns:
JsonObjectWrapper
-
parse
Parses the JSON string with the provided schemauriidentifier, and returns aJsonObjectWrapper. This method is used for a schema parsing.- Parameters:
json-Stringto parseuri-URIof the schema- Returns:
JsonObjectWrapper
-
parse
ParsesFileand returns aJsonObjectWrapperif applicable- Parameters:
file-Fileto parse- Returns:
JsonObjectWrapper
-
parse
ParsesInputStreamagainst a schema withURIidentifier and returns aJsonObjectWrapperif applicable- Parameters:
file-Fileto parseuri-URIscheme URI to parse against- Returns:
JsonObjectWrapper
-
parse
ParsesInputStreamand returns aJsonObjectWrapperif applicable- Parameters:
inputStream-InputStreamto parse- Returns:
JsonObjectWrapper
-
parse
ParsesInputStreamagainst a schema withURIand returns aJsonObjectWrapperif applicable- Parameters:
inputStream-InputStreamto parseuri-URIscheme URI to parse against- Returns:
JsonObjectWrapper
-