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: doc/basics.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -129,7 +129,7 @@ Once you have an element, you can navigate it with idiomatic C++ iterators, oper
129
129
***Extracting Values (with exceptions):** You can cast a JSON element to a native type: `double(element)` or
130
130
`double x = json_element`. This works for double, uint64_t, int64_t, bool,
131
131
dom::object and dom::array. An exception is thrown if the cast is not possible.
132
-
***Extracting Values (without expceptions):** You can use a variant usage of `get()` with error codes to avoid exceptions. You first declare the variable of the appropriate type (`double`, `uint64_t`, `int64_t`, `bool`,
132
+
***Extracting Values (without exceptions):** You can use a variant usage of `get()` with error codes to avoid exceptions. You first declare the variable of the appropriate type (`double`, `uint64_t`, `int64_t`, `bool`,
133
133
`dom::object` and `dom::array`) and pass it by reference to `get()` which gives you back an error code: e.g.,
134
134
```c++
135
135
simdjson::error_code error;
@@ -152,11 +152,11 @@ Once you have an element, you can navigate it with idiomatic C++ iterators, oper
152
152
* **Array and Object size** Given an array or an object, you can get its size (number of elements or keys)
153
153
with the `size()` method.
154
154
* **Checking an Element Type:** You can check an element's type with `element.type()`. It
155
-
returns an `element_type`.
155
+
returns an `element_type` with values such as `simdjson::dom::element_type::ARRAY`, `simdjson::dom::element_type::OBJECT`, `simdjson::dom::element_type::INT64`, `simdjson::dom::element_type::UINT64`,`simdjson::dom::element_type::DOUBLE`, `simdjson::dom::element_type::BOOL` or, `simdjson::dom::element_type::NULL_VALUE`.
156
156
* **Output to streams and strings:** Given a document or an element (or node) out of a JSON document, you can output a minified string version using the C++ stream idiom (`out << element`). You can also request the construction of a minified string version (`simdjson::minify(element)`).
Copy file name to clipboardExpand all lines: doc/basics_doxygen.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -110,7 +110,7 @@ Once you have an element, you can navigate it with idiomatic C++ iterators, oper
110
110
***Extracting Values (with exceptions):** You can cast a JSON element to a native type: `double(element)` or
111
111
`double x = json_element`. This works for double, uint64_t, int64_t, bool,
112
112
dom::object and dom::array. An exception is thrown if the cast is not possible.
113
-
***Extracting Values (without expceptions):** You can use a variant usage of `get()` with error codes to avoid exceptions. You first declare the variable of the appropriate type (`double`, `uint64_t`, `int64_t`, `bool`,
113
+
***Extracting Values (without exceptions):** You can use a variant usage of `get()` with error codes to avoid exceptions. You first declare the variable of the appropriate type (`double`, `uint64_t`, `int64_t`, `bool`,
114
114
`dom::object` and `dom::array`) and pass it by reference to `get()` which gives you back an error code: e.g.,
115
115
```
116
116
simdjson::error_code error;
@@ -133,11 +133,11 @@ Once you have an element, you can navigate it with idiomatic C++ iterators, oper
133
133
***Array and Object size** Given an array or an object, you can get its size (number of elements or keys)
134
134
with the `size()` method.
135
135
***Checking an Element Type:** You can check an element's type with `element.type()`. It
136
-
returns an `element_type`.
136
+
returns an `element_type` with values such as `simdjson::dom::element_type::ARRAY`, `simdjson::dom::element_type::OBJECT`, `simdjson::dom::element_type::INT64`, `simdjson::dom::element_type::UINT64`,`simdjson::dom::element_type::DOUBLE`, `simdjson::dom::element_type::BOOL` or, `simdjson::dom::element_type::NULL_VALUE`.
137
137
***Output to Streams and Strings:** Given a document or an element (or node) out of a JSON document, you can output a minified string version using the C++ stream idiom (`out << element`). You can also request the construction of a minified string version (`simdjson::minify(element)`).
0 commit comments