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

Add support for complex top-level objects #88

Merged
merged 1 commit into from Sep 16, 2022

Conversation

steghoja
Copy link
Contributor

Previously, json2md only accessed the first element of the top-level
object in the JSON file. That is fine if the JSON file follows a
strictly hierarchical structure (as in the HTML examples), but fails
if there is a more complex structure.
This commit changes this behaviour (at least for the synchronous part)
and now traverses all object keys at the top level, concatenating the
results as we go along.

Previously, json2md only accessed the first element of the top-level
object in the JSON file. That is fine if the JSON file follows a
strictly hierarchical structure (as in the HTML examples), but fails
if there is a more complex structure.
This commit changes this behaviour (at least for the synchronous part)
and now traverses all object keys at the top level, concatenating the
results as we go along.
@IonicaBizau IonicaBizau merged commit d83aec8 into IonicaBizau:master Sep 16, 2022
@IonicaBizau IonicaBizau mentioned this pull request Sep 16, 2022
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 this pull request may close these issues.

None yet

2 participants