1# <small>nlohmann::</small>json_pointer 2 3```cpp 4template<typename RefStringType> 5class json_pointer; 6``` 7 8A JSON pointer defines a string syntax for identifying a specific value within a JSON document. It can be used with 9functions [`at`](../basic_json/at.md) and [`operator[]`](../basic_json/operator%5B%5D.md). Furthermore, JSON pointers 10are the base for JSON patches. 11 12## Template parameters 13 14`RefStringType` 15: the string type used for the reference tokens making up the JSON pointer 16 17!!! warning "Deprecation" 18 19 For backwards compatibility `RefStringType` may also be a specialization of [`basic_json`](../basic_json/index.md) 20 in which case `string_t` will be deduced as [`basic_json::string_t`](../basic_json/string_t.md). This feature is 21 deprecated and may be removed in a future major version. 22 23## Member types 24 25- [**string_t**](string_t.md) - the string type used for the reference tokens 26 27## Member functions 28 29- [(constructor)](json_pointer.md) 30- [**to_string**](to_string.md) - return a string representation of the JSON pointer 31- [**operator string_t**](operator_string_t.md) - return a string representation of the JSON pointer 32- [**operator==**](operator_eq.md) - compare: equal 33- [**operator!=**](operator_ne.md) - compare: not equal 34- [**operator/=**](operator_slasheq.md) - append to the end of the JSON pointer 35- [**operator/**](operator_slash.md) - create JSON Pointer by appending 36- [**parent_pointer**](parent_pointer.md) - returns the parent of this JSON pointer 37- [**pop_back**](pop_back.md) - remove last reference token 38- [**back**](back.md) - return last reference token 39- [**push_back**](push_back.md) - append an unescaped token at the end of the pointer 40- [**empty**](empty.md) - return whether pointer points to the root document 41 42## Literals 43 44- [**operator""_json_pointer**](../operator_literal_json_pointer.md) - user-defined string literal for JSON pointers 45## See also 46 47- [RFC 6901](https://datatracker.ietf.org/doc/html/rfc6901) 48 49## Version history 50 51- Added in version 2.0.0. 52- Changed template parameter from `basic_json` to string type in version 3.11.0. 53