kjson 0.0.10

A lightweight JSON parser intended for educational use and learning purposes.
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::error::ParseError;
use crate::value::Value;

pub fn from_str(json: &str) -> Result<Value, ParseError> {
    Value::parse(json)
}

pub fn from_slice(json: &[u8]) -> Result<Value, ParseError> {
    Value::parse_slice(json)
}