gojsonq
gojsonq copied to clipboard
A simple Go package to Query over JSON/YAML/XML/CSV Data
Supposed that we have list of objects which have internalScore and externalScore. OrderBy can only sort one field only, either those two. If there are 2 records having the same...
`this jsonStr = `"{"uid":17766,"openid":"ni8vhveqn6","appOpenId":"nq46kiae15","unionId":"i2jki7ttm2","nickName":"","avatarUrl":"","gender":"0","cpc":"","wxappShareImg":"","inviteCode":"","tel":"","loginTime":1603268944,"status":0,"loginIP":"","platform":"","channel":"","versionCode":"","loginType":1,"CreatedAt":"2020-10-21T16:29:05+08:00","UpdatedAt":"2020-10-21T16:29:05+08:00"}"` i want get uid and openid ,why my get is 【】interface `userJsonq := gojsonq.New().FromString(strJson) userRes := userJsonq.Select("uid","openid").Get()`
Does it support native SQL statements ?
Team, I have tried parsing this json ``` { "module": { "ABCD": { "source": "", "version": "", "location": "", "resource_group_name": "" } }, "module": { "PQRS": { "source": "", "version":...
is it possible to compare a query with 2 keys? I tried 2 3 tests, but it didn't work for me. ```json { "authorizedWriters": { "teams": [], "users": [] },...
For example, I have a json string like `[{"s":1, "a": {"b":1}},{"s":1, "a": {"b":1}},{"s":1, "a": {"b":5}}]` I want `jq.Sum("a.b")`, Is this possible?
I'm trying to use gojsonq to make some queries to JSON data. I was setting up some tests that were returning `nil` when I tried to validate the data inside...
Hi, It is just a feature request ;) Please consider support for serializing and deserializing queries (i.e. to/from JSON format), so they could be easily stored or send from client...
Hello, Please, consider using [simdjson](https://github.com/minio/simdjson-go) as default decoder because the parse times are impresive. About 50% less time to parse the "189MB-JSON-Document" for the `simdjson-go` version. ``` gojsonq - 3.919751905s...