Treatment validate

json::validate


Inputs

⇥ text: Stream<string>

Outputs

↦ is_json: Stream<bool>


Validate each string in the stream as JSON, emitting true if valid and false otherwise.

Unlike toJson, this treatment discards the parsed value — it only checks validity.

graph LR
     T("validate()")
     A["🟦 … 🟨"] -->|text| T
     T -->|is_json| B["true … false"]

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