# goccy/go-json

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/goccy-go-json).**

_How this analysis was created: the description and tags below were written by an AI model that read this project's README and public documentation pages; stars, license and language come straight from the GitHub API. The model does not read the source code._

3,687 stars · 196 forks · Go · MIT

## Links

- GitHub: https://github.com/goccy/go-json
- awesome-repositories: https://awesome-repositories.com/repository/goccy-go-json.md

## Topics

`go` `golang` `golang-library` `json`

## Description

go-json is a high-performance JSON serialization library for Go that serves as an encoder and decoder replacement for the standard library. It provides tools to convert native data structures to and from JSON format with optimized processing speeds.

The library includes a conditional serializer for filtering specific data structure fields during the encoding process and a colorizer to produce color-coded JSON strings for human readability.

The project supports context-aware marshaling to trigger specific logic during the serialization of complex data types.

## Tags

### Data & Databases

- [High-Performance JSON Encoders](https://awesome-repositories.com/f/data-databases/json-parsers/high-performance-json-encoders.md) — Provides a high-performance JSON encoding implementation as a replacement for the standard library. ([source](https://cdn.jsdelivr.net/gh/goccy/go-json@master/README.md))
- [Conditional Serializers](https://awesome-repositories.com/f/data-databases/json-serialization-libraries/conditional-serializers.md) — Provides a conditional serializer for filtering specific data structure fields during the JSON encoding process.
- [JIT-Accelerated Encoders](https://awesome-repositories.com/f/data-databases/json-serialization-libraries/reflectionless-encoders/jit-accelerated-encoders.md) — Uses JIT-style encoding to generate and cache optimized paths, bypassing repetitive reflection lookups.
- [Token-Based Stream Parsing](https://awesome-repositories.com/f/data-databases/token-based-stream-parsing.md) — Processes JSON input as a continuous token stream to minimize memory consumption for large payloads.

### Programming Languages & Runtimes

- [Go JSON Libraries](https://awesome-repositories.com/f/programming-languages-runtimes/go-json-libraries.md) — Implements a high-performance JSON library for Go that maintains compatibility with the standard encoding package.
- [Serialization Field Filtering](https://awesome-repositories.com/f/programming-languages-runtimes/json-serialization/serialization-field-filtering.md) — Controls which specific fields of a data structure are included or excluded during serialization.

### Software Engineering & Architecture

- [Field Filtering](https://awesome-repositories.com/f/software-engineering-architecture/field-filtering.md) — Allows including or excluding specific fields of a data structure during serialization to shape the output. ([source](https://cdn.jsdelivr.net/gh/goccy/go-json@master/README.md))
- [Reflection-Based Data Mapping](https://awesome-repositories.com/f/software-engineering-architecture/metadata-attachments/struct-tags/reflection-based-type-mapping/reflection-based-data-mapping.md) — Employs reflection-based data mapping to determine the memory layout of Go structs for JSON encoding.
- [Pooled Buffer Management](https://awesome-repositories.com/f/software-engineering-architecture/performance-optimization-resources/memory-management/pooled-buffer-management.md) — Implements pooled buffer management to reduce garbage collection overhead during high-frequency JSON serialization.
- [Zero-Allocation Buffer Encoders](https://awesome-repositories.com/f/software-engineering-architecture/zero-copy-buffers/zero-allocation-buffer-encoders.md) — Writes encoded JSON bytes directly into pre-allocated buffers to avoid intermediate string allocations.

### Part of an Awesome List

- [JSON Processing](https://awesome-repositories.com/f/awesome-lists/data/json-processing.md) — Fast JSON library.
