Skip to content

2.7.0 SUPPRESS_EXCEPTIONS not backwards compatible with 2.6.0 #951

Open
@Bonnev

Description

@Bonnev

In addition to #840 the following code works fine (no errors) on 2.6.0 but throws an exception on 2.7.0:

Object value = JsonPath
	.using(Configuration.defaultConfiguration()
		.setOptions(Option.SUPPRESS_EXCEPTIONS, Option.DEFAULT_PATH_LEAF_TO_NULL))
	.parse("{\"random\":{\"test1\": 4}, \"mandom\":{\"test2\": 10}}")
	.read("$..test.max()");
System.out.println(value);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions