Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> Result<Value, Error>
Expand description

Parses a JSON string with default options (all forgiving features enabled).

ยงExamples

use vexy_json_core::parse;

// Standard JSON
let result = parse(r#"{"key": "value"}"#);
assert!(result.is_ok());

// With forgiving features - unquoted keys
let result = parse(r#"{key: "value"}"#);
assert!(result.is_ok());