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

Extend "json_path" config option with JSONPath parser for deep nested data #42

Open
TyShkan opened this issue Mar 25, 2023 · 0 comments · May be fixed by #44
Open

Extend "json_path" config option with JSONPath parser for deep nested data #42

TyShkan opened this issue Mar 25, 2023 · 0 comments · May be fixed by #44

Comments

@TyShkan
Copy link
Contributor

TyShkan commented Mar 25, 2023

Followup to #16

It would be quite helpful to parse more complex JSON-files, especially if it's http-responses from some API.

With actual JSONPath parser it could be done quickly and clean with a simple expression like response.data[*] applied to

{
  "response": {
    "data": [
      { "name": "row one", "key": 42 },
      { "name": "row two", "key": 43 }
    ]
  }
}

would return

[
  { "name": "row one", "key": 42 },
  { "name": "row two", "key": 43 }
]

which is the form of the data expected as input for the json format.

The same library is used by Meltano Singer SDK.

@TyShkan TyShkan linked a pull request Mar 25, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant