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 a generic JSON and XML parser #64

Merged
merged 2 commits into from
Nov 15, 2022

Conversation

cryos
Copy link
Collaborator

@cryos cryos commented Oct 30, 2022

This fixes issue #58 and adds a generic JSON parser. It traverses the dictionary the reader outputs, builds up the path to map it into the MetaForge model, and handles the expected types. It will include lists with 16 or less elements in a similar fashion to the HDF5 parser.

This fixes issue BlueQuartzSoftware#58 and adds a generic JSON parser. It traverses the
dictionary the reader outputs, builds up the path to map it into the
MetaForge model, and handles the expected types. It will include lists
with 16 or less elements in a similar fashion to the HDF5 parser.

Signed-off-by: Marcus D. Hanwell <[email protected]>
@cryos
Copy link
Collaborator Author

cryos commented Oct 31, 2022

Spotted a few minor issues I corrected and force pushed - trivial unused member variable and class naming.

This is a first pass, and it has a few limitations principly around
dropping any duplicate tags. It will place the first tag in the model,
and drop any duplicates. Further work would be needed to add uniqueness
to tag names to map to the simple model expected by MetaForge.

Signed-off-by: Marcus D. Hanwell <[email protected]>
@cryos cryos changed the title Add a generic JSON parser Add a generic JSON and XML parser Nov 5, 2022
@cryos cryos merged commit c7c9906 into BlueQuartzSoftware:trunk Nov 15, 2022
@cryos cryos deleted the json-parser branch November 15, 2022 17:52
@cryos cryos mentioned this pull request Nov 15, 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.

1 participant