2 Commits

Author SHA1 Message Date
Moritz Poldrack
71807f3414
fix(render): Stream JSON instead of buffering the message
Currently, not only the object but also the serialized representation is
kept in memory in full. For small objects that is usually fine, but when
exporting large data structures this makes the memory explode. This gets
even worse when exporting it indented.

The byte-output has changed since the Encoder.Encode functions add an
extra new-line, the marshaled output outside of that remains the same.
2026-10-21 21:33:58 +02:00
Tim
688a429d19
feat: support custom json codec at runtime (#3391)
* refactor(json): export json codec

* feat(json): support custom json codec at runtime

* chore(copyright): update copyright to 2025 gin core team

* docs(gin): add custom json codec examples in doc file
2025-06-16 23:16:36 +08:00