Added new Gson TypeAdapter's for Data types Double and Float to facilitate the serialization of Special Floating Point Values as defined in the above mappings
Added new methods serialize and deserialize to RudderGson which will centralize the usage of Gson for serialization and deserialization across the codebase. These methods will safely catch any exceptions thrown while serialization/de-serialization.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added unit tests for the code
[ ] I have made corresponding changes to the documentation
Handling the Serialization of Special Floating Point Values while Serializing any object using Gson
TypeAdapter
's for Data typesDouble
andFloat
to facilitate the serialization of Special Floating Point Values as defined in the above mappingsserialize
anddeserialize
toRudderGson
which will centralize the usage of Gson for serialization and deserialization across the codebase. These methods will safely catch any exceptions thrown while serialization/de-serialization.Type of change
Checklist: