Treatment tryFromNumberF64

json/value::tryFromNumberF64


Generics

◻ F: ToF64

Inputs

⇥ value: Stream<F>

Outputs

↦ json: Stream<Option<Json>> (json::Json)


Convert each f64-convertible value in the stream into a JSON number, emitting none for infinite or NaN values.

⚠️ Infinite and NaN values are not valid JSON; use fromNumberF64 if you need a fallback instead of none.

graph LR
     T("tryFromNumberF64()")
     A["🟦 … 🟨"] -->|value| T
     T -->|json| B["〈🟦〉 … 〈none〉"]

     style A fill:#ffff,stroke:#ffff
     style B fill:#ffff,stroke:#ffff