[#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` having the same value and allocator as `text`. == 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); ---- == Description 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}. == Parameters [cols="1,4"] |=== | Name| Description | *text* | JSON number text to move from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#