Skip to content

Commit

Permalink
Cleaned up JsonObjectTree.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy1981 committed Nov 26, 2010
1 parent f451db2 commit d106267
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions 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) { }
Expand Down Expand Up @@ -84,6 +82,7 @@ private static JsonObject CreateJsonObject(object jsonObject)
obj.JsonType = JsonType.Object;
else
{

obj.JsonType = JsonType.Value;
obj.Value = jsonObject;
}
Expand Down

0 comments on commit d106267

Please sign in to comment.