8000 Question on Nested Search · Issue #4 · elgs/jsonql · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Question on Nested Search #4
Open
@spirrello

Description

@spirrello

Hi,

Using your example on the readme, how would you go about querying one of the nested values such as one of the skills?

Does this look right?

fmt.Println(parser.Query("name='elgs' && skills[]=Java"))

{
"name": "elgs",
"gender": "m",
"age": 35,
"skills": [
"Golang",
"Java",
"C"
]
},
{
"name": "enny",
"gender": "f",
"age": 36,
"hobby": null,
"skills": [
"IC",
"Electric design",
"Verification"
]
},
{
"name": "sam",
"gender": "m",
"age": 1,
"hobby": "dancing",
"skills": [
"Eating",
"Sleeping",
"Crawling"
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0