Skip to content

Chode: migrate to JSON v2 #244

Open
d4rp4t wants to merge 3 commits into
lescuer97:masterfrom
d4rp4t:master
Open

Chode: migrate to JSON v2 #244
d4rp4t wants to merge 3 commits into
lescuer97:masterfrom
d4rp4t:master

Conversation

@d4rp4t
Copy link
Copy Markdown

@d4rp4t d4rp4t commented May 5, 2026

Comment thread internal/utils/json.go

"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin/render"
jsonv2 "github.com/go-json-experiment/json"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

this is not the correct dependency. this is the correct V2 https://pkg.go.dev/encoding/json/v2

We don't want to add a dependency that is not STD if not needed.

Copy link
Copy Markdown
Owner

@lescuer97 lescuer97 left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution!

the utils approach seems to be fine but they json dependency is incorrect. also you wil probably need some adjustment to the justfile because of this feature still needing to be experimental

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.

2 participants