Book: The Complete Guide to Go Programming Also by me: Thinking in Go (2-book series) — Complete Guide to Go Programming + Hexagonal Architecture in Go My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools Me: xgabriel.com | GitHub You have a 4 GB JSON log file. The shape is the obvious one: a top-level array with a few million objects in it. The job is to read each object, look at one field, and either drop the object or stream it onward. The first version of the code reaches for json.Unmarshal into a []Event . The process OOMs. You switch to json.NewDecoder(r).Decode(&v) in a loop and reach for dec.Token() to skip past the opening bracket. It works. It is also slower than reading the file twice with bufio and writing your own scanner, which is the moment a lot of Go code I've read stops trusting the standard library for big JSON. encoding/json/v2 is the part of the standard library that is trying to fix that.…