Lines Matching refs:JsonValue
14 use ylong_json::{Array, JsonValue, Object};
178 assert_eq!($json[0]["null1"], JsonValue::new_null());
209 assert_eq!($json[4]["array3"][0], JsonValue::new_null());
215 assert_eq!($json[4]["array4"][0], JsonValue::new_null());
224 assert_eq!($json[5]["object3"]["key1"], JsonValue::new_null());
230 assert_eq!($json[5]["object4"]["key1"], JsonValue::new_null());
269 let json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap();
272 let json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap();
275 let json = JsonValue::from_text(JSON_PARSE_TEST).unwrap();
281 let mut json = JsonValue::from_text(json_text).unwrap();
285 json["null"] = JsonValue::new_null();
302 json["array"][2] = JsonValue::new_null();
306 assert_eq!(json["array"][2], JsonValue::new_null());
314 json["object"]["null"] = JsonValue::new_null();
318 assert_eq!(json["object"]["null"], JsonValue::new_null());
329 let mut json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap();
338 let temp = JsonValue::from_text(&vec).unwrap();
346 let mut json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap();
355 let temp = JsonValue::from_text(&vec).unwrap();
363 let mut json = JsonValue::from_text(JSON_PARSE_TEST).unwrap();
372 let temp = JsonValue::from_text(&vec).unwrap();