Treatment toJson
json::toJson
Inputs
⇥ text: Stream<string>
Outputs
↦ error: Stream<Option<string>>
↦ json: Stream<Option<Json>> (json::Json)
Parse string into Json data.
json contains json data if input text contains valid json, else none.
error contains message if input text is not valid json, else none.