spark85 / json-path

Automatically exported from code.google.com/p/json-path
0 stars 0 forks source link

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

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Part of 1.0

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