What's the best way to serialize and deserialize a dom instance?
Would like to get a filtered set of dom instances moved from one DMS to the other.
Tim Vandenbruwaene [SLC] [DevOps Enabler] Selected answer as best 3rd July 2024
Hi Tim,
The easiest way to serialize and deserialize a DOM instance is by using the 'domInstance.ToJson()' and 'DomInstance.FromJson()' methods.
Thomas Ghysbrecht [SLC] [DevOps Enabler] Posted new comment 3rd July 2024


The simplest would be to just loop over your collection and use the same methods. It should also be possible to use Newtonsoft.Json and serialized/deserialize a ‘List’, this way you have one large JSON.
The ToJson and FromJson methods can indeed be used to serialize and deserialize a single instance, but what’s the preferred way to serialize a collection of instances?