jasn-core
Core data types for JASN and JAML serialization formats.
This crate provides the shared data model used by both JASN (JSON5-like) and JAML (YAML-like) serialization formats. Both formats share the same type system and in-memory representation.
Data Model
use BTreeMap;
use Value;
let mut map = new;
map.insert;
map.insert;
let value = Map;
Types
Value: The main enum representing all possible valuesBinary: Wrapper for binary data (Vec<u8>)Timestamp: ISO8601/RFC3339 timestamp with timezone
Features
serde(default): Enable serde serialization/deserialization support
Usage
Add this to your Cargo.toml:
[]
= "0.2"
Or if you want to work with JASN or JAML formats directly:
[]
= "0.2" # for JASN format
# jaml = "0.1" # for JAML format (coming soon)
License
MIT License - see LICENSE file for details.