Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment get

json/value::get


Parameters

↳ var key: string

Inputs

⇥ json: Stream<Json> (json::Json)

Outputs

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


Emit the value of key for each JSON value in the stream, or none if it is not an object or has no key.

graph LR
     T("get(key=\"name\")")
     A["{name: 🟦} … 🟨"] -->|json| T
     T -->|value| B["〈🟦〉 … 〈none〉"]

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