Hello Dojo,
I'm currently working on a package to install a solution to a DataMiner agent, as part of this process, I want to create/update a DOM Module that I've already configured on one system, and I figured that using the exported json file from the DOM Editor script would be the best way to go forward. The question I have is that I'd like to know if there is a pre-existing object for deserializing these files. I checked the DOM Editor script to see if it uses one, and it doesn't use on. I'm not above creating an object to parse it, but I figure I should ask to make sure I'm not about to reinvent the wheel.
Thank you for your help,
Bauti
For the time being, I'm using this class for deserializing Modules:
Somethings to know is that if you use this class, you're going to need to set your JsonSerializerSettings to have TypeNameHandling.Auto and a ContractResolver with IgnoreSerializableInterface set to true. You also can't use this with SecureNewtonsoftDeserialization as that will throw an error, so stick to JsonConvert.