I am using version 2.4.0 of the com.jayway.jsonpath json-path library. I have attempting to parse an invalid document, but I done't get an exception thrown. The code is like
this.json= Configuration.defaultConfiguration().jsonProvider().parse(document);
The value of the document variable passed into the parse method is "notvalidjson". However the call returns fine assigning the string "notvalidjson" to the member json Object. Is this expected behaviour> I was expecting an InvalidJsonException to be thrown.
Thanks, Paul