1 # <small>nlohmann::basic_json::</small>is_string
4 constexpr bool is_string() const noexcept;
7 This function returns `#!cpp true` if and only if the JSON value is a string.
11 `#!cpp true` if type is a string, `#!cpp false` otherwise.
15 No-throw guarantee: this member function never throws exceptions.
25 The following code exemplifies `is_string()` for all JSON types.
28 --8<-- "examples/is_string.cpp"
34 --8<-- "examples/is_string.output"
39 - Added in version 1.0.0.