| 3289 | } |
| 3290 | |
| 3291 | bool is_object() const noexcept |
| 3292 | { |
| 3293 | switch (storage_kind()) |
| 3294 | { |
| 3295 | case json_storage_kind::empty_object: |
| 3296 | case json_storage_kind::object: |
| 3297 | return true; |
| 3298 | case json_storage_kind::const_json_ref: |
| 3299 | return cast<const_json_ref_storage>().value().is_object(); |
| 3300 | case json_storage_kind::json_ref: |
| 3301 | return cast<json_ref_storage>().value().is_object(); |
| 3302 | default: |
| 3303 | return false; |
| 3304 | } |
| 3305 | } |
| 3306 | |
| 3307 | bool is_array() const noexcept |
| 3308 | { |