Rate This Document
Findability
Accuracy
Completeness
Readability

JsonElement::has(const std::string_view key) const

Function Usage

Returns true if a JsonElement node is not null and has a matching key, or otherwise, returns false.

Function Syntax

bool JsonElement::has(const std::string_view key) const;

Parameters

Parameter

Description

Value Range

Input/Output

key

Key of the node to be queried.

Valid string

Input

Return Value

  • Success: true is returned, indicating that the node exists.
  • Failure: false is returned, indicating that the node is null or does not exist.