Ticket #189 (new defect)
json property-names cannot start with numbers
| Reported by: | fries | Owned by: | jgou |
|---|---|---|---|
| Priority: | major | Milestone: | 0.5 |
| Component: | modules/kauri-dbresources | Version: | trunk |
| Keywords: | XPath, Json | Cc: |
Description
I just discovered that json property-names cannot start with a number.
The number 1 could be an ID, weeknumber, etc...
when you try to load something like this
{
"1":[
{ "name": "value"},
{ "name": "value"}]
}
when this scenario occurs an org.apache.commons.jxpath.JXPathInvalidSyntaxException is thrown with the following message: Invalid XPath:'1'
To me this is a rather serious limitation.
Note: See
TracTickets for help on using
tickets.
beyond 0.4 scope