Ticket #189 (new defect)

Opened 4 years ago

Last modified 4 years ago

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.

Change History

comment:1 Changed 4 years ago by mpo

  • Milestone changed from 0.4 to 0.5

beyond 0.4 scope

Note: See TracTickets for help on using tickets.