Skip to content

feat: parseTo which accepts a string that has normal javascript accessor expressions #69

Description

@schveiguy

parseTo takes a string[]... parameter which parses the tokenizer to nested aggregates matching the names given.

For example:

{"a" : {"b": {"c": 5}}}

tokenizer.parseTo("a", "b", "c"); will position the tokenizer at the 5.

But would be much better UX to have it like tokenizer.parseTo("a.b.c");.

The biggest issue is that this syntax already matches the current parseTo function. So we need a new name for it.

Ideas:

  • parseJson
  • parseExpr
  • query

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions