()
| 370 | |
| 371 | #[test] |
| 372 | fn nested_object() { |
| 373 | let m = parse("{ addr: { city: 'NYC' } }"); |
| 374 | let inner = match &m["addr"] { |
| 375 | Value::Object(o) => o, |
| 376 | _ => panic!("expected Object"), |
| 377 | }; |
| 378 | assert_eq!(inner["city"], Value::String("NYC".to_string())); |
| 379 | } |
| 380 | |
| 381 | #[test] |
| 382 | fn array_value() { |