src/cx/json.h

changeset 1551
f3ba964dc8d5
parent 1547
12da0654e4a9
child 1556
afdaa70034f8
equal deleted inserted replaced
1550:19874e606235 1551:f3ba964dc8d5
215 */ 215 */
216 struct cx_json_array_s { 216 struct cx_json_array_s {
217 /** 217 /**
218 * The array data. 218 * The array data.
219 */ 219 */
220 CX_ARRAY_DECLARE(CxJsonValue*, array); 220 CX_ARRAY_DECLARE(CxJsonValue*, data);
221 }; 221 };
222 222
223 /** 223 /**
224 * Structure for a JSON value. 224 * Structure for a JSON value.
225 */ 225 */
1179 * @return the size of the array 1179 * @return the size of the array
1180 * @see cxJsonIsArray() 1180 * @see cxJsonIsArray()
1181 */ 1181 */
1182 cx_attr_nonnull 1182 cx_attr_nonnull
1183 CX_INLINE size_t cxJsonArrSize(const CxJsonValue *value) { 1183 CX_INLINE size_t cxJsonArrSize(const CxJsonValue *value) {
1184 return value->array.array_size; 1184 return value->array.data_size;
1185 } 1185 }
1186 1186
1187 /** 1187 /**
1188 * Returns an element from a JSON array. 1188 * Returns an element from a JSON array.
1189 * 1189 *

mercurial