Create a JsonNumber having the same value and allocator as text.
Declared in <bdljsn_jsonnumber.h>
explicit
JsonNumber(bslmf::MovableRef<bsl::string> 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}.
| Name | Description |
|---|---|
| text | JSON number text to move from |