A high-performance Rust JSON parser that extracts values using dotpath syntax, inspired by gjson.
AJSON is a Rust JSON parser that allows developers to quickly extract specific values from JSON data using a dotpath query syntax. It is a port of the popular Go library gjson, designed for high-performance scenarios where only partial data access is needed. The library avoids full deserialization, making it significantly faster for targeted queries.
Rust developers working with JSON data who need to efficiently query or extract specific fields without parsing entire structures, such as those building data processing pipelines, APIs, or performance-sensitive applications.
Developers choose AJSON for its exceptional speed in JSON value extraction, its intuitive dotpath syntax similar to gjson, and its ability to query complex nested structures with minimal overhead compared to traditional deserialization libraries.
Rust port of gjson,get JSON value by dotpath syntax
Benchmarks show AJSON parsing is over 10x faster than serde_json for targeted queries, as it avoids full deserialization by extracting values directly from the JSON string.
Uses a concise syntax inspired by gjson, enabling easy extraction with wildcards and conditional queries like `friends.#(last=="Murphy")#.first` for complex nested data.
Provides convenient methods such as as_str() and as_u64() to quickly convert extracted values to Rust types without additional parsing overhead.
Allows building new JSON structures using selector syntax, offering flexibility beyond mere reading, as shown in examples with assembled outputs.
The README's todo list explicitly includes 'Add documentation', indicating current documentation is incomplete or lacking, which can hinder onboarding and advanced usage.
At version 0.3 with a todo to 'Follow api-guidelines', the library is in early development, meaning potential breaking changes and less predictability for production code.
Compared to established alternatives like serde_json, AJSON has fewer integrations, community resources, and tooling support, which may complicate adoption in complex projects.
Strongly typed JSON library for Rust
PROST! a Protocol Buffers implementation for the Rust Language
Zero-copy deserialization framework for Rust
Rusty Object Notation
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.