9 .\" .ta 0.75i 1.5i 2.25i 3i 3.75i 4.5i
10 .ta 0.7i +0.7i +0.7i +0.7i +0.7i +0.7i +0.7i
25 typedef struct JSONEl JSONEl;
32 typedef struct JSON JSON;
43 JSON* jsonparse(char *);
44 void jsonfree(JSON *);
45 JSON* jsonbyname(JSON *, char *);
46 char* jsonstr(JSON *);
51 structure represents a variant json value. The variant type
54 member of the structure. String values use
56 booleans and numbers use the
58 members in the structure.
59 Arrays and objects (dictionaries) are represented by
60 a singly-linked list of
62 structures referred to from the
71 pointer to the associated value and a
73 pointer to the next element in the array or object.
74 Dictionary objects have the
76 member set to the key of the association.
78 A json object is parsed by calling
82 string of the json encoded data. On success, a non-nil pointer to a
85 structure is returned.
86 To free the parsed objects,
92 function returns the associated value of a dictionary item.
96 returns the string value of a json object or
98 for any other object type.
109 on error and set an error string (see