BloombergLP::bdljsn::JsonNumber::JsonNumber

Create a JsonNumber having the value of the specified text. Optionally specify an allocator (e.g., the address of a bslma::Allocator object) used to supply memory. The behavior is undefined unless isValidJsonNumber(text) is true. See {JSON Textual Specification}.

Synopsis

Declared in <bdljsn_jsonnumber.h>

explicit
JsonNumber(
    char const* text,
    allocator_type const& allocator = allocator_type());