Class JsonPathUtils


  • public class JsonPathUtils
    extends Object
    Helper class for working with JSON objects and JSON path.
    Since:
    8.0.0
    Author:
    XIMA Media GmbH
    • Method Detail

      • readValueAtJsonPath

        public static Object readValueAtJsonPath​(Map<String,​Object> json,
                                                 Object pathValue)
        Returns the value of the object defined by the given JSON path if it exists.
        Parameters:
        json - to get the value from.
        pathValue - JSON path defining the location of the value within the given JSON object.
        Returns:
        the value of the object defined by the given JSON path if it exists and null otherwise.