Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

...

In order to search across given json the Json data here with multiple attributes under different lists OR condition support this implementationis used.

we can combine two leaf elements using “OR” condition this would give result. Below are the examples:

  • Here cps-path //books[@pub_year=1994 or @price=1099]]
    • Since, pub_year=1994 and price=1099 are under different list it gives the required response

...

  • Here cps-path //books[@pub_year=1994 or @price=895 or @title="Far Horizons"]
    • multiple attributes pub_year=1994 and price=895 and title=Far Horizons  are under different list it gives the required response                                                        

...

  • Also cps-path //books[@price=895 or @title="xyz"]
    •  price attribute has  non-json value price=895 and title=xyz  which non-json value "  

//books[@pub_year=1994 or @price=895 or @title="Far Horizons"]

...

1.Since leaf are stored in Hashmap same keys are not supported, unique keys only supports.

2.Only leaves can be used, leaf-list are not supported

3.Only string and integer values are supported, boolean and float values are not supported.

...