Commit Graph

19 Commits

Author SHA1 Message Date
Erick Tryzelaar
e7ce710da5 Fix parsing json into optional types
Does not yet handle parsing missing values as `None` yet though.
Closes #25.
2015-03-04 09:45:11 -08:00
Erick Tryzelaar
e9f356755f Add json value deserializer 2015-03-04 09:45:11 -08:00
Erick Tryzelaar
cd3cad8ef5 Fix serializing json enums 2015-03-04 09:45:11 -08:00
Erick Tryzelaar
4b2354597d Start fixing the json tests 2015-03-04 09:44:56 -08:00
Erick Tryzelaar
b2f52df5ff Fix serializing json objects 2015-03-03 21:55:48 -08:00
Erick Tryzelaar
6382441f2e Rename the json tests 2015-03-03 21:47:42 -08:00
Erick Tryzelaar
189b3f0394 Add test for #[derive_serialize] for structs 2015-03-03 21:42:33 -08:00
Erick Tryzelaar
4db8b732f1 Simplify test_de 2015-03-03 21:35:49 -08:00
Erick Tryzelaar
37bc3e9df3 Fix #[derive_deserialize] for deserializing empty sequences named units 2015-03-03 21:33:51 -08:00
Erick Tryzelaar
79a7bc9bf2 convert to where clauses 2015-03-03 21:27:07 -08:00
Erick Tryzelaar
098cd335ce Factor de tests into it's own file 2015-03-03 21:19:55 -08:00
Erick Tryzelaar
7a170e1b2c Fix #[derive_serialize] for enum struct variants 2015-03-03 21:17:40 -08:00
Erick Tryzelaar
fe64145c06 Fix #[derive_serialize] for tuple structs 2015-03-03 21:14:43 -08:00
Erick Tryzelaar
61fdcb0611 Add the json tests 2015-03-03 20:33:25 -08:00
Erick Tryzelaar
b5314aac11 Factor the ser tests into it's own module 2015-03-03 20:33:17 -08:00
Erick Tryzelaar
4ff4165da6 Fix serializing named units 2015-03-03 20:29:59 -08:00
Erick Tryzelaar
1182ad0223 Fix tests, make Deserializer::visit take a value not a reference 2015-03-03 11:09:09 -08:00
Erick Tryzelaar
5c4327cd16 Silence a warning 2015-02-25 08:14:20 -08:00
Erick Tryzelaar
d4dcf8e75d A really ugly hack to get generic enum serialization 2015-02-25 07:22:44 -08:00