Closed
Description
Adding the following to AbstractJsonParserTests
will cause all our parser implementations to fail, however, BasicJsonParser
fails with an ugly NullPointerException
rather than something that tells the user that the JSON is bad:
@Test
void malformedJson() {
String input = "[tru,erqett,{\"foo\":fatrue,true,true,true,tr''ue}]";
List<Object> list = this.parser.parseList(input);
assertThat(list).hasSize(3);
}