1282 cx_attr_returns_nonnull |
1282 cx_attr_returns_nonnull |
1283 cx_attr_export |
1283 cx_attr_export |
1284 CxJsonValue *cxJsonArrGet(const CxJsonValue *value, size_t index); |
1284 CxJsonValue *cxJsonArrGet(const CxJsonValue *value, size_t index); |
1285 |
1285 |
1286 /** |
1286 /** |
|
1287 * Removes an element from a JSON array. |
|
1288 * |
|
1289 * If the @p value is not a JSON array, the behavior is undefined. |
|
1290 * |
|
1291 * This function, in contrast to cxJsonArrayGet(), returns @c NULL |
|
1292 * when the index is out of bounds. |
|
1293 * |
|
1294 * @param value the JSON value |
|
1295 * @param index the index in the array |
|
1296 * @return the removed value from the specified index or @c NULL when the index was out of bounds |
|
1297 * @see cxJsonIsArray() |
|
1298 */ |
|
1299 cx_attr_nonnull |
|
1300 cx_attr_export |
|
1301 CxJsonValue *cxJsonArrRemove(CxJsonValue *value, size_t index); |
|
1302 |
|
1303 /** |
1287 * Returns an iterator over the JSON array elements. |
1304 * Returns an iterator over the JSON array elements. |
1288 * |
1305 * |
1289 * The iterator yields values of type @c CxJsonValue* . |
1306 * The iterator yields values of type @c CxJsonValue* . |
1290 * |
1307 * |
1291 * If the @p value is not a JSON array, the behavior is undefined. |
1308 * If the @p value is not a JSON array, the behavior is undefined. |