Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8291097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T13:00:48+00:00 2026-06-08T13:00:48+00:00

When passing the following string to jsonPath to filter a collection of objects: $[?(en|**|(@.object.property.one==’other’)

  • 0

When passing the following string to jsonPath to filter a collection of objects:

$[?(en|**|(@.object.property.one=='other') && (@.object.property.two=='something(abc/def)'))]

I receive the following error:

jsonPath: Unexpected token ILLEGAL: (_v.object.property.one=='other') && (_v.object.property.two=='something(abc/def))

My initial guess is that the illegal character has something to do with round brackets or a forward slash present within a literal value. This might explain why a closing single quote around the last literal is missing. I have tried escaping both the round brackets and forward slash but to no avail. What would cause the filter method to throw the above exception?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T13:00:49+00:00Added an answer on June 8, 2026 at 1:00 pm

    Having a quick read over the jsonPath documentation it looks like brackets don’t do the job you’d think.

    In XPath, brackets are used to do groupings however in jsonPath they’re used for script expressions (using whatever the underlying script engine is).

    It could be that the value you’re presenting as the script expression is invalid.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following setup: Class A property x as string property y as
I have a problem passing a string argument using Perl. The following code #!/usr/bin/perl
I am passing the following JSON object from a .jsp page to a java
I'm passing information from one page another with following php code.. Index.php page: <?php
Given the following method: public static void SetPropertyValue(object target, string propName, object value) {
The following JSON is not passing validation. The validator complains at the first string
I am running into the following problem, I am passing an array of string
I have the following definition of a boost::function object: typedef boost::function<std::string (std::string, std::string)> concat;
I tried passing an std::string via RPC, but I got the following error: MIDL2025:
I'm passing a JSON object to Javascript via the ViewBag with the following code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.