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 pointer

json/value::pointer


Parameters

↳ var pointer: string

Inputs

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

Outputs

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


Emit the value at pointer for each JSON value in the stream, or none if there is none.

pointer is a JSON Pointer (RFC 6901), such as "/hit/download/url", "/parts/0", or "" for the value itself. In names, ~1 stands for / and ~0 for ~.

graph LR
     T("pointer(pointer=\"/a/0\")")
     A["{a: [🟦]} … 🟨"] -->|json| T
     T -->|value| B["〈🟦〉 … 〈none〉"]

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