Microsoft Dev Blogs

Replacing jackson-databind with azure-json and azure-xml

thumbnail

Summary of Changes to Azure SDK for Java

Introduction of azure-json and azure-xml

To reduce dependency on jackson-databind, the Azure SDK for Java now offers two new serialization libraries: azure-json for JSON serialization and azure-xml for XML serialization. These libraries provide streaming readers and writers, and model interfaces for serialization behaviors without runtime dependencies, reducing potential conflicts.

Changes to Models in Azure SDK for Java Client Libraries

Client library models previously used Jackson annotations for serialization, but now use azure-json and azure-xml implementations, eliminating the need for reflection and simplifying JSON and XML serialization support.

Integration Points with Jackson and Gson

The Azure SDK for Java continues to support serialization and deserialization using Jackson and Gson for seamless integration with existing applications. While some functionality still relies on Jackson in specific cases, the aim is to minimize direct dependencies on Jackson in future releases.

For any questions or concerns, reach out to the Azure SDK for Java team on GitHub.