News for hackers. Stuff that matters.
Re:A New Go API for JSON by athorax on Wednesday November 04, 2026 @01:59PM (#50370004)
I'm not sure if I'm missing something, but isn't this functionality just moved into jsontext? https://pkg.go.dev/encoding/json/jsontext#Value.Indent

  v := jsontext.Value(b)
  v.Indent()
  fmt.Println(string(v))
Re:A New Go API for JSON by irq-1 on Wednesday November 04, 2026 @03:22PM (#50370964)

    func WithIndent(indent string) Options
https://pkg.go.dev/encoding/json/jsontext#WithIndent