Expand description
§ISON Parser for Rust
A Rust implementation of the ISON (Interchange Simple Object Notation) parser. ISON is a minimal, LLM-friendly data serialization format optimized for AI/ML workflows.
§Quick Start
use ison_rs::{parse, dumps, Value};
let ison_text = r#"
table.users
id name email
1 Alice alice@example.com
2 Bob bob@example.com
"#;
let doc = parse(ison_text).unwrap();
let users = doc.get("users").unwrap();
for row in &users.rows {
println!("{}: {}", row.get("id").unwrap(), row.get("name").unwrap());
}
// Serialize back
let output = dumps(&doc, true);Modules§
- plugins
- ISON Plugins
Structs§
- Block
- A block of structured data
- Document
- A complete ISON document
- Field
Info - Field information including optional type annotation
- ISON
Error - Errors that can occur during ISON parsing
- Reference
- Reference to another record in the document
Enums§
- Value
- Value types in ISON
Constants§
Functions§
- dumps
- Serialize a Document to an ISON string
- dumps_
isonl - Serialize to ISONL format
- dumps_
with_ delimiter - Serialize a Document to an ISON string with custom delimiter
- ison_
to_ isonl - Convert ISON text to ISONL text
- ison_
to_ json - Convert ISON to JSON format (requires serde feature)
- isonl_
to_ ison - Convert ISONL text to ISON text
- json_
to_ ison - Convert JSON to ISON format (requires serde feature)
- loads
- Parse an ISON string into a Document (alias for parse)
- loads_
isonl - Parse ISONL string (alias for parse_isonl)
- parse
- Parse an ISON string into a Document
- parse_
isonl - Parse ISONL format