mirror of
https://github.com/DaveGamble/cJSON.git
synced 2026-11-14 19:03:32 +00:00
Add cJSONUtils_GetPointerCaseSensitive
This commit is contained in:
1 parent
73823c4b6d
commit
cd4d7b9b6e
2 files changed
+6
No files matched your search
@@ -299,6 +299,11 @@ CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *po
|
|||||||
return get_item_from_pointer(object, pointer, false);
|
return get_item_from_pointer(object, pointer, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointerCaseSensitive(cJSON * const object, const char *pointer)
|
||||||
|
{
|
||||||
|
return get_item_from_pointer(object, pointer, true);
|
||||||
|
}
|
||||||
|
|
||||||
/* JSON Patch implementation. */
|
/* JSON Patch implementation. */
|
||||||
static void decode_pointer_inplace(unsigned char *string)
|
static void decode_pointer_inplace(unsigned char *string)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
|
|
||||||
/* Implement RFC6901 (https://tools.ietf.org/html/rfc6901) JSON Pointer spec. */
|
/* Implement RFC6901 (https://tools.ietf.org/html/rfc6901) JSON Pointer spec. */
|
||||||
CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer);
|
CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointer(cJSON * const object, const char *pointer);
|
||||||
|
CJSON_PUBLIC(cJSON *) cJSONUtils_GetPointerCaseSensitive(cJSON * const object, const char *pointer);
|
||||||
|
|
||||||
/* Implement RFC6902 (https://tools.ietf.org/html/rfc6902) JSON Patch spec. */
|
/* Implement RFC6902 (https://tools.ietf.org/html/rfc6902) JSON Patch spec. */
|
||||||
/* NOTE: This modifies objects in 'from' and 'to' by sorting the elements by their key */
|
/* NOTE: This modifies objects in 'from' and 'to' by sorting the elements by their key */
|
||||||
|
|||||||
Reference in new issue
Block a user