1# basic_json::operator""_json 2 3```cpp 4json operator "" _json(const char* s, std::size_t n) 5``` 6 7This operator implements a user-defined string literal for JSON objects. It can be used by adding `#!cpp _json` to a 8string literal and returns a [`json`](../json.md) object if no parse error occurred. 9 10## Parameters 11 12`s` (in) 13: a string representation of a JSON object 14 15`n` (in) 16: length of string `s` 17 18## Return value 19 20[`json`](../json.md) value parsed from `s` 21 22## Exceptions 23 24The function can throw anything that [`parse(s, s+n)`](parse.md) would throw. 25 26## Complexity 27 28Linear. 29 30## Version history 31 32- Added in version 1.0.0. 33