Skip to content

Chode: migrate to JSON v2 - #244

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

d4rp4t wants to merge 4 commits into
lescuer97:masterfrom
d4rp4t:master

Conversation

@d4rp4t

@d4rp4t d4rp4t commented May 5, 2026

Copy link
Copy Markdown

Comment thread internal/utils/json.go Outdated

"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.

@lescuer97 lescuer97 left a comment

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.

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