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

Iterator Functions #119

Open
WillianBR opened this issue Apr 16, 2019 · 1 comment
Open

Iterator Functions #119

WillianBR opened this issue Apr 16, 2019 · 1 comment

Comments

@WillianBR
Copy link

I missed a iterator routines, to allow people to easy walk through JSON as list keys as properties (dot) notation. It'll make things easy to get data from a file where we don't now nothing about the fields.

Let's supose I iterate over a github commit output, a output could be:

Input file:

[
  {
    "sha": "5de0af1694360f09f...fff0776bcc54c6580e63",
    "node_id": "MDY6Q29tbWl0Mz....mYwNzc2YmNjNTRjNjU4MGU2Mw==",
    "commit": {
      "author": {
        "name": "DeCoRawr",
        "email": "[email protected]",
        "date": "2013-12-17T15:49:18Z"
      },

With a output like:

sha=5de0af1694360f09f...fff0776bcc54c6580e63
node_id=MDY6Q29tbWl0Mz....mYwNzc2YmNjNTRjNjU4MGU2Mw==
commit.author.name=DeCoRawr 
[email protected]
commit.author.date=2013-12-17T15:49:18Z
@zarie3
Copy link

zarie3 commented Mar 17, 2022

Hi,
Sounds nice, I could use it as well.

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