Skip to content

Search for property? #111

@davaya

Description

@davaya

Is it possible to search for a specific property regardless of where it appears in the tree? Given a JSON document

{
  "foo": 1,
  "a": {
    "foo": 2,
    "b": {
      "foo": 3,
      "bar": 4,
      "baz": 5
    }
  }
}

I want to find all occurrences of property foo without a-priori knowledge of the document structure, yielding the same results as grepping the JSON data or using DOM querySelectorAll():
["foo", "a.foo", "a.b.foo"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions