thedevsaddam / gojsonq

A simple Go package to Query over JSON/YAML/XML/CSV Data
https://github.com/thedevsaddam/gojsonq/wiki
MIT License
2.18k stars 140 forks source link

Add support for nested level Select with alias #10

Closed thedevsaddam closed 6 years ago

thedevsaddam commented 6 years ago

Add support for nested level Selection:

res := gojsonq.New().File("./data.json").From(".").Select("user.id as uid", "user.name.first", "user.posts").Where("users.address.present", "=", "LA").Get()
println(res)
thedevsaddam commented 6 years ago

Should work for gojsonq version >= v1.5