jss-core 0.2.0

Json Simplified Schema Core Interface
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Result;
use json_value::JsonValue;
use std::str::FromStr;

#[cfg(feature = "wasm")]
mod from_js;
mod from_json;
mod from_text;

pub fn parse_json(json: &str) -> Result<JsonValue> {
    let json = JsonValue::from_str(json)?;
    return Ok(json);
}