RuddenberryL / json-path

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

Unable to select members that include "#" in the name #54

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start with a json document that contains a "#" in the attribute name
[
{ "store": [
  { "@": { "uuid": "0" }},
  { "#text" : "How Now Brown Cow" }
]

2. Try to select that node
$[?(@.store)].*[?(@.#text)]
$[?(@.store)].*[?(@.#text)].#text

What is the expected output? 
[{"#text":"How Now Brown Cow"}]
["How Now Brown Cow"]

What do you see instead?
Invalid field name! Use bracket notation if your filed names does not match 
pattern: ([a-zA-Z@][a-zA-Z0-9@\$_\-]*)$

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

On what operating system?
Windows 7

Please provide any additional information below.
The "#text" is a valid member name for the json object, so the must be a way to 
select it  (?escape notation?)

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

GoogleCodeExporter commented 9 years ago
Part of upcoming 1.0

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