Skip to content
Bunny83 edited this page Aug 29, 2019 · 4 revisions

Classes Overview

JSONNode

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.

Properties

Data Access

Type Checking

  • 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; }

Enumerables

  • public virtual IEnumerable Children { get; }
  • public IEnumerable DeepChildren { get; }
  • public IEnumerable<KeyValuePair<string, JSONNode>> Linq { get; }
  • public KeyEnumerator Keys { get; }
  • public ValueEnumerator Values { get; }

Miscellaneous

  • public virtual bool Inline { get; set; }

Static Fields

  • public static bool forceASCII;
  • public static bool longAsString;
  • public static bool allowLineComments;

Methods

  • 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()

Static Methods

  • public static JSONNode Parse(string aJSON)
Clone this wiki locally