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

Parsing nested fields of object #7

Open
ppressives opened this issue Nov 20, 2018 · 1 comment
Open

Parsing nested fields of object #7

ppressives opened this issue Nov 20, 2018 · 1 comment
Assignees

Comments

@ppressives
Copy link

ppressives commented Nov 20, 2018

Thank you for this awesome project!

It would be great if this library had some way to parse nested fields with ignoring others.

For example

{
  "foo": 123,
  "bar": {
    "targetField": [
      {"a": 1},
      {"a": 1},
      {"a": 1}
    ]
  }
}
tokens.through(TokenFilter.downField("bar").downObject.downField("targetField").downArray.select)
@derekjw
Copy link
Owner

derekjw commented Nov 20, 2018

Sounds like a good idea. I'll get that done when I have a moment for it. Thanks

@derekjw derekjw self-assigned this Nov 20, 2018
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