Closed freman closed 6 years ago
@freman Could you please provide the full query?
I tried various forms of
gojsonq.New().File("./events.json").From(".").Select("eventid").Where("locations.DRW", "=", "Darwin").Get()
With, and without the from, WhereNotNil, WhereIn. I even tried SortBy("eventid") first
@freman Hey could you please send a PR to to improve the feature.
We need two things to solve the problem:
Where
method. e.g: Where("users.posts.title" , "=", "hey")
Object
properties@freman You can convert the object into a list/array and perform the query. From gosjonq v1.2
it supports the DOT(.) notation in Where clause. As we can't support querying the objects at this time, I'm closing the issue.
Eh, this defeats the convenience of a library that parses json and makes it searchable. I just switched to streamed decoding.
Doesn't seem to work when you don't have nicely sliceable structures.
IE: https://www.iinet.net.au/status/event/events.json
I tried
Where("DRW", "=", "Darwin")
but kept getting nothing back