[#BloombergLP-bdljsn-JsonNumber-2constructor-05e1] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]::JsonNumber :relfileprefix: ../../../ :mrdocs: Create a `JsonNumber` object having the same value and the same allocator as the specified `text`. The contents of the `value` string becomes unspecified but valid, and its allocator remains unchanged. The behavior is undefined unless `isValidNumber(text)` is `true`. See {JSON Textual Specification}. == Synopsis Declared in `<bdljsn_jsonnumber.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit JsonNumber(xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<bsl::string>] text); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#