Shikhar13 / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

Path expression language processor for json missing some features #118

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The path processor in build 20120325 has some features missing from the JSON 
handler:

- globbing not supported (// expression)
- parent selecting not supported (.. expression)
- getAs*Array() functions throws cast exceptions
- text predicates not working when lvalue path points to an array

There are also a few issues in both the JSON and XML handlers:

- getAsArray() returns array of private StructuredContent object not usable by 
end user.
- getAs*Array() throws cast exceptions when selecting attributes in xml

The attached update is sync'd with current svn with updates to resolve 
everything above, the JSON and XML processing should work exactly the same now. 
 This will be the last I proactively enhance features for now unless there's 
any specific requests.

Original issue reported on code.google.com by 1815...@coolman.ca on 28 Mar 2012 at 6:09

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks. I'll integrate this to the next update.

Original comment by shai.almog on 30 Mar 2012 at 7:45