Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10702

camel-jsonpath - Allow to define predicates even easier

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.19.0
    • camel-jsonpath
    • None
    • Unknown

    Description

      When using jsonpath for predicates the syntax can be a bit complex to understand and learn for even the simplest things.

      So having to do

                              .when().jsonpath("$.store.book[?(@.price < ${header.cheap})]")
      

      We can try to let Camel be smart and help you with a easy syntax when you have one operator and in predicate mode, so this can be just

                              .when().jsonpath("store.book.price < ${header.cheap}")
      

      Then camel-jsonpath will parse this and build the complexer jsonpath syntax on your behalf.

      Not having to remember the complexities of [?@.] and other hard to remember symbols to just say a simple predicate if X < Y etc.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment