Class JsonPathServiceImpl

    • Field Detail

      • executions

        @NotNull
        @Valid
        @NonNull
        protected @NotNull @Valid @NonNull java.util.List<Execution> executions
        The list of jsonpath executions to apply.
      • unwrapJson

        protected java.lang.Boolean unwrapJson
        Get whether the JSON should be unwrapped removing any leading or trailing square brackets [].

        The default is false if not specified.

    • Constructor Detail

      • JsonPathServiceImpl

        public JsonPathServiceImpl()
    • Method Detail

      • toString

        protected static java.lang.String toString​(java.lang.Object json,
                                                   Execution exec)
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • unwrap

        protected static java.lang.String unwrap​(java.lang.String json,
                                                 boolean unwrapJson)
        Strip (if necessary) the leading/trailing [] from the JSON.
        Parameters:
        json - The JSON string.
      • unwrapJson

        protected boolean unwrapJson()
      • suppressPathNotFound

        protected boolean suppressPathNotFound​(Execution exec)
      • convertIfNull

        protected static java.lang.Object convertIfNull​(java.lang.Object o,
                                                        Execution exec)
      • getExecutions

        @NonNull
        public @NonNull java.util.List<Execution> getExecutions()
        The list of jsonpath executions to apply.
      • setExecutions

        public void setExecutions​(@NonNull
                                  @NonNull java.util.List<Execution> executions)
        The list of jsonpath executions to apply.
      • getUnwrapJson

        public java.lang.Boolean getUnwrapJson()
        Get whether the JSON should be unwrapped removing any leading or trailing square brackets [].

        The default is false if not specified.

      • setUnwrapJson

        public void setUnwrapJson​(java.lang.Boolean unwrapJson)
        Get whether the JSON should be unwrapped removing any leading or trailing square brackets [].

        The default is false if not specified.