Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

Parsing exported DOM Module

Solved71 views18 hours agoDOM DOM Editor DOM module
2
Bautista Solanet [SLC] [DevOps Advocate]367 2 days ago 0 Comments

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

Bautista Solanet [SLC] [DevOps Advocate] Selected answer as best 18 hours ago

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Thomas Ghysbrecht [SLC] [DevOps Enabler]5.06K Posted 1 day ago 0 Comments

Hi Bautista,

The safest way would be to generate your own exports using the same class structure as you used to import them. This ensures that the packages are and remain compatible, since you control the format/contract. I would however expect the format of the DOM editor to not really change in any breaking way, so it is probably safe to use the class you currently have.

The DOM editor just exports the DOM data in one of the many possible ways, and does not really specify 'the' way of doing so. There are other perfectly valid ways to create your own exports where the objects are each in separate files, for example. That approach could be better if you have a very large model with many 'default' DOM instances.

Bautista Solanet [SLC] [DevOps Advocate] Selected answer as best 18 hours ago
2
Bautista Solanet [SLC] [DevOps Advocate]367 Posted 2 days ago 0 Comments

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.

Bautista Solanet [SLC] [DevOps Advocate] Answered question 2 days ago
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin