loaders ยป json

json() โ†’ object/array/value
jsonItems() โ†’ array
jsonList() โ†’ array

Parses the value as JSON and returns the result (or passes on the parser error for malformed JSON).

eno-- json payload
{
  "status": 500
}
-- json payload
javascriptconst document = eno.parse(input);

document.json('json payload');  // returns { status: 500 }