BloombergLP::bdljsn::JsonNumber::isValidNumber

Return true if the specified text complies with the grammar of a JSON number, and false otherwise.

Synopsis

Declared in <bdljsn_jsonnumber.h>

static
bool
isValidNumber(std::string_view const& text);

Description

See the {JSON Textual Specification}.

Return Value

true if text complies with the grammar of a JSON number, and false otherwise

Parameters

NameDescription
textcandidate JSON number text