Skip to content

Refactor easyjson with encoding/json #579

Open
@Ja7ad

Description

@Ja7ad

Description
We propose removing easyjson and refactoring the SDK to use the built-in encoding/json package. Although easyjson provides performance benefits, it has limitations when dealing with dynamic types, such as interface{} in search results. This was highlighted in #436, where large numeric values encountered precision issues. Switching to encoding/json would improve flexibility, maintainability, and error handling.

Basic example

// Replace easyjson.Marshal with json.Marshal
json.Marshal(data)

Metadata

Metadata

Assignees

Labels

breaking-changeThe related changes are breaking for the usersenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions