Bitspark / slang

SLANG engine written in Go
https://bitspark.de/slang/
Apache License 2.0
98 stars 11 forks source link

JSON decoding less strict #237

Open td5r opened 4 years ago

td5r commented 4 years ago

I want the JSON decoding to map it received data to provided output port type.

Currently this fail because the JSON decoding checks for absolute equal JSON structure and don't allows sub sets or picking

kairichard commented 4 years ago

@td5r I would actually move to use this https://github.com/thedevsaddam/gojsonq instead. And implement it as an operator that has a selector and generic output. This would allow users to query only small portions of otherwise large JSON structures w/o having to deal with defining a type.