contains

JSON::Node::contains

Checks if the Object Node contains a certain key.

Declaration

bool contains(const std::string& childName) const;

Parameters

Name

Type

Description

childName

const std::string&

The name of the child to check the existence of.

Returns

true if the Object JSON::Node contains a child with the name childName, else, returns false.

Notes

This function can only be called on a JSON::Node with the Object JSON::Type.