mirror of
https://github.com/nlohmann/json.git
synced 2026-10-04 13:40:33 +00:00
deploy: 63c10a51fc
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -33,6 +33,16 @@ The order of types is as follows:
|
||||
|
||||
`discarded` is unordered.
|
||||
|
||||
```
|
||||
flowchart LR
|
||||
A[null] --> B[boolean]
|
||||
B --> C["number_integer / number_unsigned / number_float"]
|
||||
C --> D[object]
|
||||
D --> E[array]
|
||||
E --> F[string]
|
||||
F --> G[binary]
|
||||
```
|
||||
|
||||
Types of numbers
|
||||
|
||||
There are three enumerators for numbers (`number_integer`, `number_unsigned`, and `number_float`) to distinguish between different types of numbers:
|
||||
@@ -98,6 +108,14 @@ true
|
||||
true
|
||||
```
|
||||
|
||||
## See also
|
||||
|
||||
- [type](https://json.nlohmann.me/api/basic_json/type/index.md) return the type of the JSON value
|
||||
- [type_name](https://json.nlohmann.me/api/basic_json/type_name/index.md) return the type as string
|
||||
- [operator value_t](https://json.nlohmann.me/api/basic_json/operator_value_t/index.md) return the type of the JSON value
|
||||
- [is_primitive](https://json.nlohmann.me/api/basic_json/is_primitive/index.md) return whether the type is primitive
|
||||
- [is_structured](https://json.nlohmann.me/api/basic_json/is_structured/index.md) return whether the type is structured
|
||||
|
||||
## Version history
|
||||
|
||||
- Added in version 1.0.0.
|
||||
|
||||
Reference in New Issue
Block a user