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

JSON Arrays #22

Closed
wants to merge 3 commits into from
Closed

Conversation

harmanpa
Copy link
Contributor

This pull-request adds the ability to read 1D and 2D arrays of Real / Integer / Boolean / String types from JSON files. Functions are added to ExternData.JSONFile to read each of these.

The JSON implementation has been changed to use Parson (https://github.com/kgabis/parson) instead of bsxml-json, as bsxml-json does not support numerical / boolean values or strings containing special characters and it's API for arrays is insufficient.

It is built for Windows 32 and 64 with Visual Studio 2010 and tested with Dymola 2018.

…/2D arrays of Real/Integer/String/Boolean types from JSON.
@dietmarw
Copy link
Member

I would accept this until I see a test on Linux 😛

@harmanpa
Copy link
Contributor Author

Very kind of you to volunteer to test it @dietmarw :-)

@hyumo
Copy link

hyumo commented Sep 20, 2017

It would be great if we can have dynamic 2d arrays for csv, xml, xls and xlsx too for consistency.

@tbeu
Copy link
Contributor

tbeu commented Sep 22, 2017

Thank you. Merged manually. Updated binaries will follow soon.

@tbeu tbeu closed this Sep 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants