vigossjjj/json-path

Unable to select members with the name "@" i.e. $[?(@.store)].*[?(@.@)]

Closed this issue · 2 comments

What steps will reproduce the problem?
1. Create a json document that uses "@" as a member name

[
{ "store": [
  { "@": { "uuid": "0" }},
  { "book" : [
    { "$": { "uuid": "1" }},
      { "title": "how to convert xml and json" }
      ]  
    },
  { "book" : [
    { "@": { "uuid": "2" }},
      { "title": "how to convert xml and json" }
      ]  
    }
    ]
}
]

2. Create a json path that selects that member
$[?(@.store)].*[?(@.@)]
$[?(@.store)].*[?(@.@)].@

What is the expected output? 
The members are selected
[{"@":{"uuid":"0"}}]
[{"uuid":"0"}]

What do you see instead?
[]
[]


What version of the product are you using? 
0.9.2-SNAPSHOT

On what operating system?
Windows 7 Enterprise


Please provide any additional information below.


Original issue reported on code.google.com by jeffery.scott.weber@gmail.com on 19 Sep 2014 at 5:08

Original comment by kalle.st...@gmail.com on 22 Sep 2014 at 6:33

  • Changed state: Accepted
Part of 1.0

Original comment by kalle.st...@gmail.com on 23 Sep 2014 at 2:20

  • Changed state: Fixed