| 1364 * @return the value corresponding to the key or @c NULL when the key is not part of the object |
1364 * @return the value corresponding to the key or @c NULL when the key is not part of the object |
| 1365 * @see cxJsonIsObject() |
1365 * @see cxJsonIsObject() |
| 1366 */ |
1366 */ |
| 1367 #define cxJsonObjRemove(value, name) cx_json_obj_remove(value, cx_strcast(name)) |
1367 #define cxJsonObjRemove(value, name) cx_json_obj_remove(value, cx_strcast(name)) |
| 1368 |
1368 |
| |
1369 /** |
| |
1370 * Performs a deep comparison of two JSON values. |
| |
1371 * |
| |
1372 * The order of object members is ignored during comparison. |
| |
1373 * |
| |
1374 * @param json the JSON value |
| |
1375 * @param other the other JSON value that the JSON value is compared to |
| |
1376 * @retval zero the values are equal (except for ordering of object members) |
| |
1377 * @retval non-zero the values differ |
| |
1378 */ |
| |
1379 CX_EXPORT int cxJsonCompare(const CxJsonValue *json, const CxJsonValue *other); |
| |
1380 |
| 1369 #ifdef __cplusplus |
1381 #ifdef __cplusplus |
| 1370 } |
1382 } |
| 1371 #endif |
1383 #endif |
| 1372 |
1384 |
| 1373 #endif /* UCX_JSON_H */ |
1385 #endif /* UCX_JSON_H */ |