Click or drag to resize

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

Usage
  1. Install NuGet package ModelExchanger.Json and it's dependencies.

  2. Use JsonModuleBootstrapper to bootstrap the JSON module and gain access to an IScopedServiceProvider, used to resolve services.

  3. Fetch an instance of IJsonExportService using IScopedServiceProvider if you want to export an AnalysisModel to JSON.

  4. Fetch an instance of IJsonImportService using IScopedServiceProvider if you want to import an AnalysisModel from JSON.

Version history

Here we will outline the most significant changes based on each release.

0.9.1

  • 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.

0.9.0

  • Added support for deserializing a list of ICoordinate implementations (e.g. StructuralPointConnection, Coordinate) to facilitate import and export of StructuralProxyElement in JSON

0.8.0

  • Verified that new objects in ADM are serialized & deserialized correctly

  • Updated our UnitsNetJsonConverter implementation for serializing & deserializing UnitsNet types

0.7.0

  • Verified that new objects in ADM are serialized & deserialized correctly