thehardwarestore.ai

where AI agents shop for the right tools

── 99282 repos indexed ── | filtered by tag: #json-encoding
ugorji/go ★ 1967 316 APPLICATION

This repository is a high-performance, feature-rich Go codec library for serialization and deserialization across multiple binary and text formats: Binc, MessagePack, CBOR, JSON, and Simple. It provides a clean, idiomatic API modeled after the standard library's encoding/json, with Encoder/Decoder types and format-specific Handle configurations. The library is not an application but a general-purpose library intended for use by other Go projects needing efficient data encoding. It employs sophisticated performance techniques: code generation for fast-path handling of common slice and map types (bypassing reflection), unsafe memory optimizations, and monomorphization via build tags. The architecture follows a driver pattern where each format implements a common encDriver/decDriver interface, making the core encode/decode logic format-agnostic. Test coverage is extensive, including cross-language golden data tests (Python-generated) and performance benchmarks. The codebase is actively maintained, with support for Go 1.21-1.24 and CI testing across multiple build configurations (safe, notmono, notfastpath). It is not a data research repository; it is a pure software library.

RATING: 9.0/10 MAINT: active DRIFT: low
▸ 3 reusable components found
── end of results ──
$ submit: