Skip to content

Use canonical json for JSON RPC request and response marshaling#1610

Merged
prashantkumar1982 merged 3 commits intomainfrom
dk-digest-using-cannonical-json
Oct 13, 2025
Merged

Use canonical json for JSON RPC request and response marshaling#1610
prashantkumar1982 merged 3 commits intomainfrom
dk-digest-using-cannonical-json

Conversation

@DeividasK
Copy link
Contributor

This is required to ensure consistency in request and response marshaling.

@github-actions
Copy link

👋 DeividasK, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link

github-actions bot commented Oct 13, 2025

✅ API Diff Results - No breaking changes


📄 View full apidiff report | 📚 Learn about apidiff

@DeividasK DeividasK changed the title Use cannonical json for JSON RPC request and response marshaling Use canonical json for JSON RPC request and response marshaling Oct 13, 2025
"fmt"
"strings"

canonicaljson "github.com/gibson042/canonicaljson-go"
Copy link
Contributor

@jmank88 jmank88 Oct 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the standard library json/v2 instead of a third party? https://pkg.go.dev/encoding/json/v2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er that is still experimental this release, but it is an embedding of this package: https://pkg.go.dev/github.com/go-json-experiment/json

@prashantkumar1982 prashantkumar1982 merged commit bb888fe into main Oct 13, 2025
21 of 22 checks passed
@prashantkumar1982 prashantkumar1982 deleted the dk-digest-using-cannonical-json branch October 13, 2025 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants