Function |from_number_f64

json/value::|from_number_f64


Usage

|from_number_f64<F>(value, replacement)

Generics

◻ F: ToF64

Parameters

↳ value: F
↳ replacement: Json (json::Json)

Return

↴ Json


Makes a JSON numeric value from f64

An infinite or NaN number is not a valid JSON value, and then return replacement value if in that case.