You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/json.hpp
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -227,7 +227,7 @@ class exception : public std::exception
227
227
/*!
228
228
@brief exception indicating a parse error
229
229
230
-
This excpetion is thrown by the library when a parse error occurs. Parse errors
230
+
This exception is thrown by the library when a parse error occurs. Parse errors
231
231
can occur during the deserialization of JSON text, CBOR, MessagePack, as well
232
232
as when using JSON Patch.
233
233
@@ -243,7 +243,7 @@ json.exception.parse_error.102 | parse error at 14: missing or wrong low surroga
243
243
json.exception.parse_error.103 | parse error: code points above 0x10FFFF are invalid | Unicode supports code points up to 0x10FFFF. Code points above 0x10FFFF are invalid.
244
244
json.exception.parse_error.104 | parse error: JSON patch must be an array of objects | [RFC 6902](https://tools.ietf.org/html/rfc6902) requires a JSON Patch document to be a JSON document that represents an array of objects.
245
245
json.exception.parse_error.105 | parse error: operation must have string member 'op' | An operation of a JSON Patch document must contain exactly one "op" member, whose value indicates the operation to perform. Its value must be one of "add", "remove", "replace", "move", "copy", or "test"; other values are errors.
246
-
json.exception.parse_error.106 | parse error: array index '01' must not begin with '0' | An array index in a JSON Pointer ([RFC 6901](https://tools.ietf.org/html/rfc6901)) may be `0` or any number wihtout a leading `0`.
246
+
json.exception.parse_error.106 | parse error: array index '01' must not begin with '0' | An array index in a JSON Pointer ([RFC 6901](https://tools.ietf.org/html/rfc6901)) may be `0` or any number without a leading `0`.
247
247
json.exception.parse_error.107 | parse error: JSON pointer must be empty or begin with '/' - was: 'foo' | A JSON Pointer must be a Unicode string containing a sequence of zero or more reference tokens, each prefixed by a `/` character.
248
248
json.exception.parse_error.108 | parse error: escape character '~' must be followed with '0' or '1' | In a JSON Pointer, only `~0` and `~1` are valid escape sequences.
249
249
json.exception.parse_error.109 | parse error: array index 'one' is not a number | A JSON Pointer array index must be a number.
@@ -3294,7 +3294,7 @@ class parser
3294
3294
}
3295
3295
3296
3296
/*!
3297
-
@brief the acutal acceptor
3297
+
@brief the actual acceptor
3298
3298
3299
3299
@invariant 1. The last token is not yet processed. Therefore, the caller
3300
3300
of this function must make sure a token has been read.
@@ -4312,7 +4312,7 @@ class json_reverse_iterator : public std::reverse_iterator<Base>
4312
4312
{
4313
4313
public:
4314
4314
using difference_type = std::ptrdiff_t;
4315
-
/// shortcut to the reverse iterator adaptor
4315
+
/// shortcut to the reverse iterator adapter
4316
4316
using base_iterator = std::reverse_iterator<Base>;
4317
4317
/// the reference type for the pointed-to element
4318
4318
using reference = typename Base::reference;
@@ -8304,7 +8304,7 @@ class basic_json
8304
8304
@brief create a JSON value
8305
8305
8306
8306
This is a "catch all" constructor for all compatible JSON types; that is,
8307
-
types for which a `to_json()` method exsits. The constructor forwards the
8307
+
types for which a `to_json()` method exists. The constructor forwards the
8308
8308
parameter @a val to that method (to `json_serializer<U>::to_json` method
8309
8309
with `U = uncvref_t<CompatibleType>`, to be exact).
8310
8310
@@ -9027,7 +9027,7 @@ class basic_json
9027
9027
string | value_t::string
9028
9028
number (integer) | value_t::number_integer
9029
9029
number (unsigned integer) | value_t::number_unsigned
9030
-
number (foating-point) | value_t::number_float
9030
+
number (floating-point) | value_t::number_float
9031
9031
object | value_t::object
9032
9032
array | value_t::array
9033
9033
discarded | value_t::discarded
@@ -10366,7 +10366,7 @@ class basic_json
10366
10366
@return copy of the element at key @a key or @a default_value if @a key
10367
10367
is not found
10368
10368
10369
-
@throw type_error.306 if the JSON value is not an objec; in that cases,
10369
+
@throw type_error.306 if the JSON value is not an object; in that cases,
10370
10370
using `value()` with a key makes no sense.
10371
10371
10372
10372
@complexity Logarithmic in the size of the container.
0 commit comments