BloombergLP::bdljsn::NumberUtil::isValidNumber

Return true if the specified value is a valid JSON number.

Synopsis

Declared in <bdljsn_numberutil.h>

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

Description

Note that this function may return true even if value cannot be represented in any particular number type.

Return Value

true if value is a valid JSON number, and false otherwise

Parameters

NameDescription
valuetext to validate as a JSON number