JSONSelect icon indicating copy to clipboard operation
JSONSelect copied to clipboard

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

Open zzm2q opened this issue 11 years ago • 1 comments

something like this:

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

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

zzm2q avatar Jun 23 '14 07:06 zzm2q

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

danvk avatar Oct 07 '14 15:10 danvk