Bug 63035

Summary: JSON : Switch from JsonSmartJsonProvider to JacksonJsonProvider
Product: JMeter Reporter: Philippe Mouawad <p.mouawad>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: NEW ---    
Severity: enhancement CC: p.mouawad
Priority: P2    
Version: 5.0   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Philippe Mouawad 2018-12-23 21:51:51 UTC
JSON Smart default JSON provider of json-path is no more maintained.

We should switch to Jackson as underlying implementation:

Configuration.setDefaults(new Configuration.Defaults() {

    private final JsonProvider jsonProvider = new JacksonJsonProvider();
    private final MappingProvider mappingProvider = new JacksonMappingProvider();
      
    @Override
    public JsonProvider jsonProvider() {
        return jsonProvider;
    }

    @Override
    public MappingProvider mappingProvider() {
        return mappingProvider;
    }
    
    @Override
    public Set<Option> options() {
        return EnumSet.noneOf(Option.class);
    }
});


Reference docs:
- https://github.com/FasterXML/jackson
- https://github.com/json-path/JsonPath/blob/master/json-path/src/main/java/com/jayway/jsonpath/spi/json/JacksonJsonNodeJsonProvider.java
- https://github.com/json-path/JsonPath/blob/master/json-path/src/main/java/com/jayway/jsonpath/spi/json/JacksonJsonProvider.java
Comment 1 Philippe Mouawad 2018-12-23 21:52:48 UTC
See also:

- https://github.com/json-path/JsonPath/issues/513