| Constructor and Description |
|---|
JoltSpecBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static JoltSpec |
buildSpec(String jsonSpec)
See
buildSpec(String, boolean) with false for param withMetadata |
static JoltSpec |
buildSpec(String jsonSpec,
boolean withMetadata)
Builds a
JoltSpec object based on the provided string representation of the json spec. |
public static JoltSpec buildSpec(String jsonSpec) throws JoltSpecException
buildSpec(String, boolean) with false for param withMetadataJoltSpecExceptionpublic static JoltSpec buildSpec(String jsonSpec, boolean withMetadata) throws JoltSpecException
JoltSpec object based on the provided string representation of the json spec.
If an error occurs during the creation of the spec, a JoltSpecException is thrown.jsonSpec - the string representation of the specwithMetadata - does the json input to use the spec against has meta dataJoltSpecJoltSpecException - when an error occurred during spec parsingCopyright © 2016–2020. All rights reserved.