1# <small>nlohmann::json_pointer::</small>operator string_t 2 3```cpp 4operator string_t() const 5``` 6 7Return a string representation of the JSON pointer. 8 9## Return value 10 11A string representation of the JSON pointer 12 13## Possible implementation 14 15```cpp 16operator string_t() const 17{ 18 return to_string(); 19} 20``` 21 22## Notes 23 24!!! warning "Deprecation" 25 26 This function is deprecated in favor of [`to_string`](to_string.md) and will be removed in a future major version 27 release. 28 29## Examples 30 31??? example 32 33 The example shows how JSON Pointers can be implicitly converted to strings. 34 35 ```cpp 36 --8<-- "examples/json_pointer__operator_string_t.cpp" 37 ``` 38 39 Output: 40 41 ```json 42 --8<-- "examples/json_pointer__operator_string_t.output" 43 ``` 44 45## Version history 46 47- Since version 2.0.0. 48- Changed type to `string_t` and deprecated in version 3.11.0. 49