We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Flatten JSON which has JSON schema format currently not supported before converting.
Poll: #89
The text was updated successfully, but these errors were encountered:
I do this by pre-processing my files with jq. Give the following:
flatten.json:
[ { "a": { "b": 1, "c": 2 } }, { "a": { "b": 3, "c": 4 } } ]
flatten.jq:
map([ leaf_paths as $path | { key: $path|join("."), value: getpath($path) } ]|from_entries)
the command jq -f flatten.jq flatten.json will produce the following output:
jq -f flatten.jq flatten.json
[ { "a.b": 1, "a.c": 2 }, { "a.b": 3, "a.c": 4 } ]
Sorry, something went wrong.
#89
thombashi
No branches or pull requests
Flatten JSON which has JSON schema format currently not supported before converting.
Poll: #89
The text was updated successfully, but these errors were encountered: