JsonData Class

Assembly
Cake.Gradle.dll
Namespace
LitJson
Interfaces
Base Types
  • Object
graph BT Type-->Base0["Object"] Type-.->Interface0["IJsonWrapper"] click Interface0 "/api/LitJson/IJsonWrapper" Type-.->Interface1["IList"] Type-.->Interface2["ICollection"] Type-.->Interface3["IEnumerable"] Type-.->Interface4["IOrderedDictionary"] Type-.->Interface5["IDictionary"] Type-.->Interface6["IEquatable<JsonData>"] Type["JsonData"] class Type type-node

Syntax

public class JsonData : IJsonWrapper, IList, ICollection, IEnumerable, IOrderedDictionary, 
    IDictionary, IEquatable<JsonData>

Attributes

Type Description
DefaultMemberAttribute

Constructors

Properties

Name Value Summary
Count int
IsArray bool
IsBoolean bool
IsDouble bool
IsInt bool
IsLong bool
IsObject bool
IsString bool
Keys ICollection<string>
this[int] JsonData
this[string] JsonData

Methods

Name Value Summary
Add(object) int
Clear() void
ContainsKey(string) bool
Determines whether the json contains an element that has the specified key.
Equals(JsonData) bool
GetJsonType() JsonType
Remove(object) bool
SetJsonType(JsonType) void
ToJson() string
ToJson(JsonWriter) void
ToString() string

Operators

Name Value Summary
explicit operator bool(JsonData) bool
explicit operator double(JsonData) double
explicit operator int(JsonData) int
explicit operator long(JsonData) long
explicit operator string(JsonData) string
implicit operator JsonData(bool) JsonData
implicit operator JsonData(double) JsonData
implicit operator JsonData(int) JsonData
implicit operator JsonData(long) JsonData
implicit operator JsonData(string) JsonData

Extension Methods

Name Value Summary
Dump<JsonData>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
IsIn<JsonData>(JsonData[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<JsonData>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<JsonData>(string) void
Requires the Cake.Issues addin
ThrowIfNull<JsonData>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<JsonData>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin