Changed type to string_t and deprecated in version 3.11.0.
\ No newline at end of file
diff --git a/api/macros/json_assert/index.html b/api/macros/json_assert/index.html
index a2e3673a8..5c1210daa 100644
--- a/api/macros/json_assert/index.html
+++ b/api/macros/json_assert/index.html
@@ -1,4 +1,4 @@
- JSON_ASSERT - JSON for Modern C++
The library uses numerous assertions to guarantee invariants and to abort in case of otherwise undefined behavior (e.g., when calling operator[] with a missing object key on a const object). See page runtime assertions for more information.
Defining the macro to code that does not call std::abort may leave the library in an undefined state.
\ No newline at end of file
diff --git a/api/macros/json_diagnostic_positions/index.html b/api/macros/json_diagnostic_positions/index.html
index 23992487d..4f37108f5 100644
--- a/api/macros/json_diagnostic_positions/index.html
+++ b/api/macros/json_diagnostic_positions/index.html
@@ -1,4 +1,4 @@
- JSON_DIAGNOSTIC_POSITIONS - JSON for Modern C++
This macro enables position diagnostics for generated JSON objects.
When enabled, two new member functions start_pos() and end_pos() are added to basic_json values. If the value was created by calling theparse function, then these functions allow to query the byte positions of the value in the input it was parsed from. In case the value was constructed by other means, std::string::npos is returned.
start_pos() returns the position of the first character of a given value in the original JSON string, while end_pos() returns the position of the character following the last character. For objects and arrays, the first and last characters correspond to the opening or closing braces/brackets, respectively. For primitive values, the first and last character represent the opening and closing quotes (strings) or the first and last character of the field's numerical or predefined value (true, false, null), respectively.
Given the above, end_pos()-start_pos() for a JSON value provides the length of the parsed JSON string for that value, including the opening or closing braces, brackets, or quotes.
Note that enabling this macro increases the size of every JSON value by two std::size_t fields and adds slight runtime overhead to parsing, copying JSON value objects, and the generation of error messages for exceptions. It also causes these values to be reported in those error messages.
Diagnostic positions can also be controlled with the CMake option JSON_Diagnostic_Positions (OFF by default) which defines JSON_DIAGNOSTIC_POSITIONS accordingly.
Availability
Diagnostic positions are only available if the value was created by the parse function. The sax_parse function or all other means to create a JSON value do not set the diagnostic positions and start_pos() and end_pos() will only return std::string::npos for these values.
Invalidation
The returned positions are only valid as long as the JSON value is not changed. The positions are not updated when the JSON value is changed.
\ No newline at end of file
diff --git a/api/macros/json_diagnostics/index.html b/api/macros/json_diagnostics/index.html
index 077ac748b..36c1f0af7 100644
--- a/api/macros/json_diagnostics/index.html
+++ b/api/macros/json_diagnostics/index.html
@@ -1,4 +1,4 @@
- JSON_DIAGNOSTICS - JSON for Modern C++
When enabled, exception messages contain a JSON Pointer to the JSON value that triggered the exception. Note that enabling this macro increases the size of every JSON value by one pointer and adds some runtime overhead.
As of version 3.11.0, this macro is no longer required to be defined consistently throughout a codebase to avoid One Definition Rule (ODR) violations, as the value of this macro is encoded in the namespace, resulting in distinct symbol names.
This allows different parts of a codebase to use different versions or configurations of this library without causing improper behavior.
Where possible, it is still recommended that all code define this the same way for maximum interoperability.
CMake option
Diagnostic messages can also be controlled with the CMake option JSON_Diagnostics (OFF by default) which defines JSON_DIAGNOSTICS accordingly.