We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adcbf53 commit 923a8f3Copy full SHA for 923a8f3
src/libserialize/json.rs
@@ -2233,6 +2233,10 @@ impl<A:ToJson> ToJson for ~[A] {
2233
fn to_json(&self) -> Json { List(self.iter().map(|elt| elt.to_json()).collect()) }
2234
}
2235
2236
+impl<A:ToJson> ToJson for Vec<A> {
2237
+ fn to_json(&self) -> Json { List(self.iter().map(|elt| elt.to_json()).collect()) }
2238
+}
2239
+
2240
impl<A:ToJson> ToJson for TreeMap<~str, A> {
2241
fn to_json(&self) -> Json {
2242
let mut d = TreeMap::new();
0 commit comments