mirror of
https://github.com/nlohmann/json.git
synced 2026-10-03 22:06:59 +01:00
deploy: 63c10a51fc
This commit is contained in:
@@ -38,6 +38,16 @@ functions [`is_null`](is_null.md), [`is_object`](is_object.md), [`is_array`](is_
|
||||
|
||||
`discarded` is unordered.
|
||||
|
||||
```mermaid
|
||||
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]
|
||||
```
|
||||
|
||||
!!! note "Types of numbers"
|
||||
|
||||
There are three enumerators for numbers (`number_integer`, `number_unsigned`, and `number_float`) to distinguish
|
||||
@@ -74,6 +84,14 @@ functions [`is_null`](is_null.md), [`is_object`](is_object.md), [`is_array`](is_
|
||||
--8<-- "examples/type.output"
|
||||
```
|
||||
|
||||
## See also
|
||||
|
||||
- [type](type.md) return the type of the JSON value
|
||||
- [type_name](type_name.md) return the type as string
|
||||
- [operator value_t](operator_value_t.md) return the type of the JSON value
|
||||
- [is_primitive](is_primitive.md) return whether the type is primitive
|
||||
- [is_structured](is_structured.md) return whether the type is structured
|
||||
|
||||
## Version history
|
||||
|
||||
- Added in version 1.0.0.
|
||||
|
||||
Reference in New Issue
Block a user