GridVids
Sign in with YouTube

json/v2 is fixing many of Go's JSON quirks

Dreams of Code Aug 26, 2025 15:00
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Don't Miss
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Mark watched
Create an account to hide videos, mark them watched, or save them to Don't Miss.
Hide
Open in popup Open on YouTube
Share video

Share video

Copy the GridVids link or iframe code.

Video link
Iframe code
Iframe content

Chapters
Click this link https://boot.dev/?promo=DREAMSOFCODE and use my code DREAMSOFCODE to get 25% off your first payment for boot.dev. The new experimental "encoding/json/v2" package brings a number of different improvements to both JSON marshaling and unmarshaling in Go. So much so that I thought it would be worthwhile doing a video on. *Amendments/Mistakes*: - - (Resolved) The double WithMarshalers does not work (as the video shows) This was my misunderstanding. Instead it needs to be via the JoinMarshalers, will edit this out if possible! Links: - Go 1.25 release notes: https://go.dev/doc/go1.25 - encoding/json/v2 documentation: - json/v2 proposal: https://pkg.go.dev/encoding/json/v2 - encoding/json/jsontext documentation: https://pkg.go.dev/encoding/json/jsontext - ISO8601: https://en.wikipedia.org/wiki/ISO_8601 My Gear: - Camera: https://amzn.to/3E3ORuX - Microphone: https://amzn.to/40wHBPP - Audio Interface: https://amzn.to/4jwbd8o - Headphones: https://amzn.to/4gasmla - Keyboard: ZSA Voyager Join this channel to get access to perks: https://www.youtube.com/channel/UCWQaM7SpSECp9FELz-cHzuQ/join Join Discord: https://discord.com/invite/eMjRTvscyt Join Twitter: https://twitter.com/dreamsofcode_io
Science & Technology