JASN
A Rust library for parsing and formatting JASN (Just Another Serialization Notation).
JASN is a human-readable data serialization format similar to JSON but with explicit integer and binary types, plus convenient JSON5-inspired syntax features.
Quick Start
use parse;
Features
- Distinct Types: Separate
i64integers andf64floats - Raw Binary Data: Native
b64"..."(base64) andhex"..."(hex) literals - Timestamps: ISO8601/RFC3339 timestamps with
ts"..."syntax - Comments: Block comments (
/* */) only (whitespace-agnostic design) - Flexible Syntax: Trailing commas, single quotes, unquoted object keys
- Multiple Radixes: Hexadecimal (
0x), binary (0b), and octal (0o) integers - Permissive Numbers: Leading/trailing decimal points (
.5,5.), underscores (1_000_000),inf,-inf,nan
Installation
[]
= "0.2"
For more examples and documentation, see the main repository README.
License
MIT License - see LICENSE file for details.