jsona 0.1.6

JSONA - JSON with annotations The JSONA Data Interchange Format (JSONA) is a superset of JSON that supports annotations. It also aims to alleviate some of the limitations of JSON by expanding its syntax and
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
pub mod ast;
pub mod error;
pub mod lexer;
pub mod loader;
pub mod parser;

#[doc(inline)]
pub use crate::ast::{
    Annotation, Array, Ast, Boolean, Float, Integer, Null, Object, Position, String,
};
#[doc(inline)]
pub use crate::error::Error;
#[doc(inline)]
pub use crate::loader::Loader;

pub fn parse(input: &str) -> Result<Ast, Error> {
    Loader::load_from_str(input)
}