Repository navigation
Added
mapsource:{"fn": "map", "from": S, "values": {...}, "else": V}looks
the text of a path or$variable up invaluesand yields that entry's
JSON value, any type; a miss yieldselseor, without one, is missing so a
fallback list continues.lowersource:{"fn": "lower", "from": S}
lowercases the text. Both work wherever a source does: columns,derive,
expose, conditions.as: "number"andas: "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