true on successful parse. On failure, returns false and sets value = var.init.bool parseJSON5NumericLiteral(out var value,
const(char)[] text,
const Json5Policy policy = Json5Policy.init) @safeParse a JSON5 numeric literal from text into out value.
Supported forms (case-sensitive where applicable):
42, -7, +10.0x1f, -0XFF (sign allowed), mapped to LONG/ULONG if fitting, otherwise DOUBLE..5, 5., 1e-3, +2.5e+8.NaN, Infinity, with optional leading sign (e.g., -Infinity, +NaN).-0, -0.0, -0e0. value | Parsed numeric value. |
text | Numeric literal text. |
policy | Integer-sign preference and parse options. |
true on successful parse. On failure, returns false and sets value = var.init.