We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bed600 commit eb46fd6Copy full SHA for eb46fd6
src/ser.rs
@@ -732,4 +732,28 @@ mod test {
732
let actual: Test = config.try_deserialize().unwrap();
733
assert_eq!(test, actual);
734
}
735
+
736
+ #[test]
737
+ fn test_nest() {
738
+ let val = serde_json::json! { {
739
+ "top": {
740
+ "num": 1,
741
+ "array": [2],
742
+ "nested": [[3,4]],
743
+ "deep": [{
744
+ "yes": true,
745
+ }],
746
+ "mixed": [
747
+ { "boolish": false, },
748
+ 42,
749
+ ["hi"],
750
+ { "inner": 66 },
751
+ 23,
752
+ ],
753
+ }
754
+ } };
755
+ let config = Config::try_from(&val).unwrap();
756
+ let output: serde_json::Value = config.try_deserialize().unwrap();
757
+ assert_eq!(val, output);
758
759
0 commit comments