Class JsonObject
Represents JSON object.
Inherited Members
Namespace: FastReport.Utils.Json
Assembly: FastReport.Base.dll
Syntax
public class JsonObject : JsonBase, IEnumerable<KeyValuePair<string, object>>, IEnumerable
Properties
Count
Gets the number of keys.
Declaration
public override int Count { get; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Overrides
IsObject
Returns true.
Declaration
public override bool IsObject { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Overrides
Item[String]
Gets or sets an object with specified key.
Declaration
public override object this[string key] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key. |
Property Value
| Type | Description |
|---|---|
| System.Object | The object. |
Overrides
Keys
Gets the list of keys.
Declaration
public override IEnumerable<string> Keys { get; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<System.String> |
Overrides
Methods
ContainsKey(String)
Determines whether the dictionary contains the specified key.
Declaration
public override bool ContainsKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the dictionary contains a specified key. |
Overrides
DeleteKey(String)
Deletes a specified key.
Declaration
public bool DeleteKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the key was found and removed succesfully. |
GetEnumerator()
Gets enumerator for this object.
Declaration
public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<System.String, System.Object>> | An enumerator. |
WriteTo(StringBuilder, Int32)
Writes the content to specified string builder.
Declaration
public override void WriteTo(StringBuilder sb, int indent)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Text.StringBuilder | sb | The string builder instance. |
| System.Int32 | indent | The indent. |