Skip to content

1.1.65

Choose a tag to compare

@github-actions github-actions released this 01 Aug 01:28
· 44 commits to master since this release
Refactor: Utilize global Gson instance for JSON operations

This commit refactors the codebase to use a single, globally accessible Gson instance (`globalGson`) for all JSON serialization and deserialization tasks. This change promotes consistency and potentially improves performance by avoiding repeated Gson object creation.

Affected areas:
- `GlobalDataTempStore`: Now uses `globalGson` instead of its own Gson instance.
- `DefaultParameterInterceptor` (SIKNet): Now uses `globalGson` for merging JSON parameters.
- `HttpExtension.kt` (SIKNet): All Gson operations now utilize `globalGson`.
- `ObjectExtension.kt` (SIKCore): The `toJson` extension function now uses `globalGson`. A new `globalGson` lazy-initialized property has been added.

The project version has been incremented to 1.1.65.