Class ReflectionFastJsonProvider

  • All Implemented Interfaces:
    com.jayway.jsonpath.spi.json.JsonProvider

    public final class ReflectionFastJsonProvider
    extends FastJsonProvider
    implements com.jayway.jsonpath.spi.json.JsonProvider
    JSON provider that allows treating Java object as JSON objects. You can use this to access a value on a Java object via a JSON path.
    Since:
    7.0.0
    Author:
    XIMA MEDIA GmbH
    • Field Detail

      • INSTANCE

        public static final com.jayway.jsonpath.spi.json.JsonProvider INSTANCE
        The immutable instance of this provider.
    • Constructor Detail

      • ReflectionFastJsonProvider

        public ReflectionFastJsonProvider()
    • Method Detail

      • getMapValue

        public Object getMapValue​(Object obj,
                                  String key)
        Specified by:
        getMapValue in interface com.jayway.jsonpath.spi.json.JsonProvider
        Overrides:
        getMapValue in class com.jayway.jsonpath.spi.json.AbstractJsonProvider
      • getPropertyKeys

        public Collection<String> getPropertyKeys​(Object obj)
        Specified by:
        getPropertyKeys in interface com.jayway.jsonpath.spi.json.JsonProvider
        Overrides:
        getPropertyKeys in class com.jayway.jsonpath.spi.json.AbstractJsonProvider
      • isMap

        public boolean isMap​(Object obj)
        Specified by:
        isMap in interface com.jayway.jsonpath.spi.json.JsonProvider
        Overrides:
        isMap in class com.jayway.jsonpath.spi.json.AbstractJsonProvider
      • setProperty

        public void setProperty​(Object obj,
                                Object key,
                                Object value)
        Specified by:
        setProperty in interface com.jayway.jsonpath.spi.json.JsonProvider
        Overrides:
        setProperty in class com.jayway.jsonpath.spi.json.AbstractJsonProvider
      • removeProperty

        public void removeProperty​(Object obj,
                                   Object key)
        Specified by:
        removeProperty in interface com.jayway.jsonpath.spi.json.JsonProvider
        Overrides:
        removeProperty in class com.jayway.jsonpath.spi.json.AbstractJsonProvider