• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Class JsonObject

Class represents JObject in JSON standards

Inheritance
System.Object
JsonValueBase
JsonObject
Inherited Members
JsonValueBase.DataType
JsonValueBase.Parse(String)
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public sealed class JsonObject : JsonValueBase, IJsonObject, IEnumerable<KeyValuePair<string, JsonValueBase>>, IEnumerable

Constructors

Name Description
JsonObject()

Defafault constructor

JsonObject(String)

Overloaded constructor which populates attributes by parsing given JSONObject string

JsonObject(String, String)

Overloaded constructor which populates attributes by parsing given JSONObject string and Type

Properties

Name Description
Count

Number of attributes in object

InMemorySize

In memory size of the JSONObject

Item[String]

iterator over attributes in JSONObject

Size

Size of the JSONObject

Type
Value

Returns instance of this object

Methods

Name Description
AddAttribute(String, JsonValue)

Adds an attribute in the object

AddAttribute(String, JsonValueBase)

Adds an attribute in the object

Clear()

Removes all attributes from JSONObject

ContainsAttribute(String)

Checks if the attribute exits

Equals(Object)

Checks if an obj is equal to this instance of JSONObject

GetAttributeNames()

Retruns collection of all the attribute names

GetAttributeValue(String)

Gets attribute value identified by the attribute name

GetEnumerator()

Returns and Enumerator that iterates through JSONObject attributes

RemoveAttribute(String)

Removes attribute from object on the basis of attribute name provided

ToString()

Returns JSONObject in string representation

Back to top Copyright © 2017 Alachisoft