Merge pull request #16 from DrMarcII/json_bug

Fix bug in json encoding of available debuggable windows in multiplex.
diff --git a/lib/multiplex.dart b/lib/multiplex.dart
index dfb797c..db0233d 100644
--- a/lib/multiplex.dart
+++ b/lib/multiplex.dart
@@ -168,8 +168,10 @@
       return json;
     } else if (obj is Uri) {
       return obj.toString();
+    } else if (obj is Iterable) {
+      return obj.toList();
     } else {
-      throw new ArgumentError('Cannot encode $obj');
+      return obj;
     }
   }
 }
diff --git a/pubspec.yaml b/pubspec.yaml
index 3c42c9e..6e9db90 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,5 +1,5 @@
 name: webkit_inspection_protocol
-version: 0.1.1
+version: 0.1.1+1
 description: A client for the Webkit Inspection Protocol (WIP).
 
 homepage: https://github.com/google/webkit_inspection_protocol.dart