Skip to content

jsonflat v0.3.0

Latest

Choose a tag to compare

@github-actions github-actions released this 07 Oct 17:24

Added

  • map source: {"fn": "map", "from": S, "values": {...}, "else": V} looks
    the text of a path or $ variable up in values and yields that entry's
    JSON value, any type; a miss yields else or, without one, is missing so a
    fallback list continues. lower source: {"fn": "lower", "from": S}
    lowercases the text. Both work wherever a source does: columns, derive,
    expose, conditions.
  • as: "number" and as: "bool" on a column: the first source whose text
    parses as a JSON number or boolean is written as that number or boolean.

Install

go get github.com/nayan9229/jsonflat@v0.3.0

API reference: https://pkg.go.dev/github.com/nayan9229/jsonflat@v0.3.0