From d10626733b15e096b0f4db6ffa3ff0763e7b6c22 Mon Sep 17 00:00:00 2001 From: Justin Dearing Date: Fri, 26 Nov 2010 14:30:48 -0500 Subject: [PATCH] Cleaned up JsonObjectTree.cs --- JsonViewer/JsonObjectTree.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/JsonViewer/JsonObjectTree.cs b/JsonViewer/JsonObjectTree.cs index 39abf28..8562cd8 100644 --- a/JsonViewer/JsonObjectTree.cs +++ b/JsonViewer/JsonObjectTree.cs @@ -1,16 +1,14 @@ using System; using System.Collections.Generic; -using System.Text; -using Newtonsoft.Json; -using System.Collections.ObjectModel; using System.Runtime.Serialization; -using System.Collections; + +using Newtonsoft.Json; namespace EPocalipse.Json.Viewer { public enum JsonType { Object, Array, Value }; - class JsonParseError : ApplicationException + internal class JsonParseError : ApplicationException { public JsonParseError() : base() { } public JsonParseError(string message) : base(message) { } @@ -84,6 +82,7 @@ private static JsonObject CreateJsonObject(object jsonObject) obj.JsonType = JsonType.Object; else { + obj.JsonType = JsonType.Value; obj.Value = jsonObject; }