summaryrefslogtreecommitdiff
path: root/json.h
diff options
context:
space:
mode:
authorJoey Adams2010-07-23 21:13:59 +0000
committerJoey Adams2010-07-23 21:13:59 +0000
commitf5cbbbe875326dbe5d0c43bc3c692f64f77a30bd (patch)
treeaf65a7ecd05468d504710227f4d2f34a75a044a5 /json.h
parentd60f4513e9490b2a0734f69f9de0bc92d8a874b4 (diff)
* JSONPath index subscript no longer extracts chars from strings.
* char() method added to JSONPath for extracting chars from strings. Although index subscripts (those using an integer) extract characters from strings in Stefan Goessner's JSONPath, and although it works that way in JavaScript, I believe it is rather illogical and unexpected in the context of JSONPath, and a poor use of the [] real estate. Because extracting characters from strings can still be useful, I have added a char() method for this. I implemented it now to prevent the supporting code for character extraction from wasting away.
Diffstat (limited to 'json.h')
0 files changed, 0 insertions, 0 deletions