JSON |
[This is preliminary documentation and is subject to change.]
We provide the option to import/export a model defined in ADM from/to JSON
Install NuGet package ModelExchanger.Json and it's dependencies.
Use JsonModuleBootstrapper to bootstrap the JSON module and gain access to an IScopedServiceProvider, used to resolve services.
Fetch an instance of IJsonExportService using IScopedServiceProvider if you want to export an AnalysisModel to JSON.
Fetch an instance of IJsonImportService using IScopedServiceProvider if you want to import an AnalysisModel from JSON.
Here we will outline the most significant changes based on each release.
Fixed issue when attempting to import an AnalysisModel using a stream (opposed to using a string). Objects would not be sorted in the correct order before adding them to the model.
Added support for deserializing a list of ICoordinate implementations (e.g. StructuralPointConnection, Coordinate) to facilitate import and export of StructuralProxyElement in JSON
Verified that new objects in ADM are serialized & deserialized correctly
Updated our UnitsNetJsonConverter implementation for serializing & deserializing UnitsNet types
Verified that new objects in ADM are serialized & deserialized correctly