Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Go
  3. OjG

OjG

MITGov1.28.5

A high-performance JSON parser and toolkit for Go, optimized for large and variable datasets.

GitHubGitHub
955 stars58 forks0 contributors

What is OjG?

OjG (Optimized JSON for Go) is a high-performance JSON parser and toolkit for the Go programming language. It is designed to efficiently process large datasets, especially those with variable or non-fixed structures, by providing faster parsing, validation, and writing compared to standard Go JSON libraries. The toolkit includes a full JSONPath implementation, generic JSON types, and a command-line utility for JSON manipulation.

Target Audience

Go developers working with JSON data, particularly those handling large-scale or unstructured datasets, needing performance optimizations, or requiring advanced JSON querying and manipulation capabilities.

Value Proposition

Developers choose OjG for its significant performance gains over standard Go JSON libraries, its comprehensive feature set including JSONPath and SEN, and its flexibility in handling diverse JSON structures without sacrificing speed.

Overview

Optimized JSON for Go

Use Cases

Best For

  • Processing large JSON datasets where performance is critical
  • Querying and filtering JSON data using JSONPath expressions
  • Validating JSON efficiently in high-throughput applications
  • Building or transforming JSON structures programmatically
  • Working with variable or schema-less JSON data
  • Using command-line tools for JSON manipulation and analysis

Not Ideal For

  • Projects that must strictly adhere to Go's standard encoding/json interfaces for compatibility with existing libraries or code
  • Small applications with simple, structured JSON where performance gains are negligible and the added library complexity isn't justified
  • Teams requiring extensive JSON schema validation or tooling integrated with the broader Go ecosystem

Pros & Cons

Pros

Blazing-Fast Parsing

Benchmarks show OjG's parser is up to 3.13x faster than json.Unmarshal with reuse, making it ideal for high-throughput data processing, as highlighted in the README's performance comparisons.

Full JSONPath Support

Implements comprehensive JSONPath expressions for querying JSON data, including support for structs, enabling complex data extraction like filtering with 'a[?(@.x > 1)].y'.

High-Speed Validation and Writing

Includes a validator 7x faster and a writer 4x faster than standard libraries, optimizing end-to-end JSON handling for large datasets, per the README benchmarks.

Flexible Syntax with SEN

Offers Simple Encoding Notation, a relaxed JSON syntax that omits commas and quotes, simplifying manual JSON writing and parsing for configurations or informal data.

Cons

Custom Type System

Uses its own generic types instead of Go's built-in generics, which may confuse developers accustomed to standard interfaces and require adaptation for type-safe operations.

Third-Party Dependency Risks

As an external library, it has a smaller ecosystem and community support compared to Go's standard encoding/json, potentially leading to dependency management issues or fewer integrations.

Complexity for Basic Use

Advanced features like JSONPath and assembly plans add overhead for straightforward JSON tasks, where the standard library might be simpler and sufficient.

Frequently Asked Questions

Quick Stats

Stars955
Forks58
Contributors0
Open Issues0
Last commit2 days ago
CreatedSince 2020

Tags

#fast#high-performance#validation#jsonpath#go-library#cli-tool#golang#serialization#data-processing#json#json-parser#parser

Built With

G
Go

Included in

Go169.1kJSON1.5k
Auto-fetched 9 hours ago

Related Projects

JSON for Modern C++JSON for Modern C++

JSON for Modern C++

Stars50,564
Forks7,494
Last commit17 hours ago
jqjq

Command-line JSON processor

Stars35,561
Forks1,840
Last commit7 days ago
FastjsonFastjson

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.

Stars25,593
Forks6,396
Last commit1 month ago
simdjsonsimdjson

Parsing gigabytes of JSON per second : used by Facebook/Meta Velox, the Node.js runtime, ClickHouse, WatermelonDB, Apache Doris, Milvus, StarRocks

Stars24,241
Forks1,278
Last commit14 hours ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub