[#BloombergLP-bdljsn-JsonNumber-2constructor-03c] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]::JsonNumber :relfileprefix: ../../../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit JsonNumber( char const* text, xref:BloombergLP/bdljsn/JsonNumber/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#