Bring back 2.10 based System.Json and move aspnet stack version to System.Json.Microsoft
[mono.git] / mcs / class / System.Json / System.Json / JsonValue.cs
index 4c6dc5eca7eb9bef29b186d0fb17ea5012777e8b..1d16b88e3f40407f1994efc04735c38bc269fada 100644 (file)
@@ -162,7 +162,10 @@ namespace System.Json
                                foreach (JsonValue v in ((JsonArray) this)) {
                                        if (following)
                                                w.Write (", ");
-                                       v.SaveInternal (w);
+                                       if (v != null) 
+                                               v.SaveInternal (w);
+                                       else
+                                               w.Write ("null");
                                        following = true;
                                }
                                w.Write (']');