Skip to content
transformobject mode

Parse JSON document

Reads the input stream as one JSON document and emits the parsed value.

From barnard59-base · v3.1.0

Reference

Identifier
https://barnard59.zazuko.com/operations/base/json/parse/documentView as Turtle ↓
Module
barnard59-base/json.js
Export
parseDocument
Stream
Readable and writable — reads the stream and passes it on
Implementation
ES module
Install
$ npm i barnard59-base

Use it in a pipeline

step definition · Turtle
<> a p:Step ;
  code:implementedBy [
    a code:EcmaScriptModule ;
    code:link <node:barnard59-base/json.js#parseDocument>
  ] .

Paste this into a pipeline definition to add the step. The code:link value tells barnard59 which module to load at runtime.