Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to write an expression return a object by it's key #61

Open
zzm2q opened this issue Jun 23, 2014 · 1 comment
Open

How to write an expression return a object by it's key #61

zzm2q opened this issue Jun 23, 2014 · 1 comment

Comments

@zzm2q
Copy link

zzm2q commented Jun 23, 2014

something like this:

var data = {
  "objects" : [ ..., {
    "name": "JSONSelect"
  }, ...]
}

// return the child it's name is "JSONSelect"
jsonSelect.match(expr, data);
@danvk
Copy link

danvk commented Oct 7, 2014

Set expr=".name" and it will do what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants