Eno::Loaders ยป #json

json โ†’ hash/array/value
json_items โ†’ array
json_list โ†’ 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
rubydocument = Eno.parse(input)

document.json('json payload')  #=> { status: 500 }