summaryrefslogtreecommitdiff
path: root/include/apr_json.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix a doxygen warningChristophe Jaillet2018-09-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839872 13f79535-47bb-0310-9956-ffa450edef68
* apr_json: Split apr_json_object_set() into apr_json_object_set() withGraham Leggett2018-09-011-2/+18
| | | | | | | | | a simple key, and apr_json_object_set() with the key as an apr_json_value_t, so the caller has a simpler interface to use to add a key value pair to an object. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839840 13f79535-47bb-0310-9956-ffa450edef68
* Axe the 'pool' arg from apr_json_array_add() since it's not needed.Graham Leggett2018-09-011-3/+2
| | | | | | | (Reinstated from 1839755) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839817 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1839755 for now to unblock apr_jose.h.Graham Leggett2018-09-011-11/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839813 13f79535-47bb-0310-9956-ffa450edef68
* apr_json: object keys are strings.Yann Ylavic2018-08-311-12/+11
| | | | | | | | | | | | | Make this clear in the API by requiring a usual string in apr_json_object_set() and creating the apr_json_string_t from it. It's also more user friendly as otherwise apr_json_string_create() is to be used when setting an entry. Also, axe the 'pool' arg from apr_json_array_add() since it's not needed. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839755 13f79535-47bb-0310-9956-ffa450edef68
* Make it possible to iterate through JSON arrays as well as JSON objects.Graham Leggett2018-08-311-2/+68
| | | | | | | | As a side effect, this removes the need for the temporary pool during JSON decoding. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839735 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_json_object_first() and apr_json_object_next(), allowing theGraham Leggett2018-08-301-0/+25
| | | | | | | caller to iterate through object key value pairs. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839675 13f79535-47bb-0310-9956-ffa450edef68
* Clarify comments on apr_json functions.Graham Leggett2018-08-301-3/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839670 13f79535-47bb-0310-9956-ffa450edef68
* Teach apr_json_object_get() to support a length, to align with apr_hash_get().Graham Leggett2018-08-301-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1839658 13f79535-47bb-0310-9956-ffa450edef68
* Add the ability to overlay one JSON object over another.Graham Leggett2018-08-031-0/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1837383 13f79535-47bb-0310-9956-ffa450edef68
* Pass the apr_json_value_t into the apr_json_object_get() function toGraham Leggett2018-08-021-1/+1
| | | | | | | be consistent with the rest of the API. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1837327 13f79535-47bb-0310-9956-ffa450edef68
* Begone foul tabs, and blight not our shores.Graham Leggett2018-07-161-12/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1836027 13f79535-47bb-0310-9956-ffa450edef68
* Rework the create functions to create a JSON object for eachGraham Leggett2018-07-151-10/+79
| | | | | | | JSON type. Simplifies code that uses the library. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1835979 13f79535-47bb-0310-9956-ffa450edef68
* * We cannot define the type of apr_json_object_t twice, here and in line 83.Ruediger Pluem2018-07-091-2/+2
| | | | | | | | As we need the typedef in line 83 for the structures above, don't typedef here again. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1835392 13f79535-47bb-0310-9956-ffa450edef68
* apr_json: Add support for encoding and decoding RFC8259 JSON.Graham Leggett2018-07-081-0/+248
Submitted by: Moriyoshi Koizumi <mozo mozo jp> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1835348 13f79535-47bb-0310-9956-ffa450edef68