Blog

How to replace a library from 2010?

The challenge

One of the most encountered use cases for Dovetail is converting XML to JSON. To do this, users provide XML in a specific format, which is then converted to JSON. The main problem? This component is based on the json-lib library, a library that has not been updated since 2010. Next problem: This is one of our most popular components. This left us with the challenge of how to keep the functionality while using a modern library, none of which provide this functionality out of the box.

The solution

To address this challenge and ensure continuity for our clients still utilising the xmltojson component, we decided to reimplement its functionality using modern, well-supported libraries. In Dovetail 4.15.0, we leveraged Jackson as the foundation for the revamped XML to JSON component, preserving the familiar behaviour while aligning with contemporary standards.

The importance of evolving libraries

Our experience with migrating away from json-lib underscores the importance of utilising libraries that are actively maintained and compatible with current technologies. By transitioning to Jackson, we not only resolved compatibility issues with Java 11 but also gained access to a robust ecosystem of features and ongoing support. This shift not only ensures the longevity of our software but also mitigates potential security vulnerabilities associated with outdated dependencies.

Java 11 added in Dovetail

Benefits of modernization

The adoption of Java 11 and Camel 3 in Dovetail 4.15.0 brings forth a multitude of benefits beyond the xmltojson component upgrade. From improved performance and enhanced security to access to new language features and optimizations, our users can expect a more resilient and future-proof platform. Moreover, by embracing modern technologies, we empower developers to leverage the latest tools and methodologies, fostering innovation and agility within their projects.

Conclusion

Innovation is the lifeblood of software development, and with each new release, we strive to push the boundaries of what’s possible while prioritising stability and sustainability. The transition to Dovetail 4.15.0 signifies our commitment to delivering cutting-edge solutions that empower our clients to thrive in a rapidly evolving digital landscape. By embracing Java 11, Camel 3, and modern libraries like Jackson, we pave the way for a future where innovation knows no bounds. Join us on this journey as we continue to evolve and adapt to meet the ever-evolving needs of our users.

Related resources

If you don’t test restores, you don’t have backups

It is as simple as the title suggests: “If you ...

Why did we introduce test automation?

By automating tests, our developers can build c...

New release Dovetail 4.15

The aim of this new release is to empower the u...

The flexibility of Dovetail

Dovetail's building blocks provide the freedom ...