simple_json 0.2.3

A simple runtime JSON parser.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate simple_json;

use simple_json::Json;

#[test]
fn test_example()
{
    let text   = "{ \"integer\": 12, \"float\": 80.5, \"string\": \"A JSON sample\", \"array\": [ 1, 2, 3 ], \"object\": { \"a\": \"b\" } }";
    let result = Json::parse(text).unwrap();
    
    println!("Result: {:?}", result.to_string());
}