-
Notifications
You must be signed in to change notification settings - Fork 300
Classes: JSONNode
Bunny83 edited this page Aug 29, 2019
·
4 revisions
public abstract partial class JSONNode
This class is the heart of the whole framework. It's the abstract base class for all the different structures that JSON can represent. Most of the time it's recommended to just use JSONNode for almost everything. It provides several abstract / virtual properties to simplify the work with json data.
- public virtual JSONNode this[int aIndex] { get; set; }
- public virtual JSONNode this[string aKey] { get; set; }
- public virtual int Count { get; }
- public virtual string Value { get; set; }
- public virtual double AsDouble { get; set; }
- public virtual int AsInt { get; set; }
- public virtual float AsFloat { get; set; }
- public virtual long AsLong { get; set; }
- public virtual bool AsBool { get; set; }
- public virtual JSONArray AsArray { get; }
- public virtual JSONObject AsObject { get; }
- public abstract JSONNodeType Tag { get; }
- public virtual bool IsNumber { get; }
- public virtual bool IsString { get; }
- public virtual bool IsBoolean { get; }
- public virtual bool IsNull { get; }
- public virtual bool IsArray { get; }
- public virtual bool IsObject { get; }
- public virtual IEnumerable Children { get; }
- public IEnumerable DeepChildren { get; }
- public IEnumerable<KeyValuePair<string, JSONNode>> Linq { get; }
- public KeyEnumerator Keys { get; }
- public ValueEnumerator Values { get; }
- public virtual bool Inline { get; set; }
- public static bool forceASCII;
- public static bool longAsString;
- public static bool allowLineComments;
- public virtual void Add(string aKey, JSONNode aItem)
- public virtual void Add(JSONNode aItem)
- public virtual JSONNode Remove(string aKey)
- public virtual JSONNode Remove(int aIndex)
- public virtual JSONNode Remove(JSONNode aNode)
- public virtual bool HasKey(string aKey)
- public virtual JSONNode GetValueOrDefault(string aKey, JSONNode aDefault)
- public override string ToString()
- public virtual string ToString(int aIndent)
- public abstract JSONNode.Enumerator GetEnumerator()
- public override bool Equals(object obj)
- public override int GetHashCode()
- public static JSONNode Parse(string aJSON)