JsonValue Class
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Represents a Json value.
System.Object
System.Json.JsonValue
System.Json.JsonArray
System.Json.JsonObject
System.Json.JsonPrimitive
System.Json.JsonValue
System.Json.JsonArray
System.Json.JsonObject
System.Json.JsonPrimitive
Namespace: System.Json
Assembly: System.Json (in System.Json.dll)
The JsonValue type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ChangedListenersCount | Gets the number of the changed listeners. |
![]() | ChangingListenersCount | Gets the number of the changing listeners. |
![]() | Count | Gets the number of Json values. |
![]() | Item[Int32] | Gets or sets the JsonValue object with specified index. |
![]() | Item[String] | Gets or sets the JsonValue object with specified key. |
![]() | JsonType | Gets a value that indicates whether the JSON CLR type represented by the derived type. |
| Name | Description | |
|---|---|---|
![]() | AsDynamic | Returns the Json value as a dynamic object. |
![]() ![]() | CastValue<T> | Specifies the cast value of the JsonValue. |
![]() | ContainsKey | Throws an InvalidOperationException. |
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that can iterate through the JsonValue. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetKeyValuePairEnumerator | Gets the key value pair enumerator for the JsonValue. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | GetValue(Int32) | Gets the Json value with specified index. |
![]() | GetValue(String) | Gets the Json value with specified key. |
![]() ![]() | Load(Stream) | Deserializes the text-based JSON from a stream into JSON CLR type. |
![]() ![]() | Load(TextReader) | Deserializes the text-based JSON from a text reader into a JSON CLR type. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnSaveEnded | Occurs when the save is ended. |
![]() | OnSaveStarted | Occurs when the save is started. |
![]() ![]() | Parse | Deserializes the text-based JSON into a JSON CLR type. |
![]() | RaiseChangedEvent | Raises the Changed event. |
![]() | RaiseChangingEvent | Raises the Changing event. |
![]() | ReadAs(Type) | Reads the Jsonvalue with specified type. |
![]() | ReadAs(Type, Object) | Reads the Jsonvalue with specified type. |
![]() | ReadAs<T>() | Reads the JsonValue as an object. |
![]() | ReadAs<T>(T) | Reads the JsonValue as an object with specified fallback. |
![]() | Save(Stream) | Serializes the JsonValue CLR type into text-based JSON using a stream. |
![]() | Save(TextWriter) | Serializes the JsonValue CLR type into text-based JSON using a text writer. |
![]() | SetValue(Int32, Object) | Sets the Json value with specified index and value. |
![]() | SetValue(String, Object) | Sets the Json value with specified key and value. |
![]() | ToString | Saves (serializes) this JSON CLR type into text-based JSON. (Overrides Object.ToString().) |
![]() | TryReadAs(Type, Object) | Indicates whether the JsonValue tries to read as type. |
![]() | TryReadAs<T>(T) | Indicates whether the JsonValue tries to read as a generic type. |
![]() | ValueOrDefault(Int32) | Specifies the value or the default value of the Json object with specified index. |
![]() | ValueOrDefault(Object[]) | Specifies the value or the default value of the Json object with specified indexes. |
![]() | ValueOrDefault(String) | Specifies the value or the default value of the Json object with specified key. |
| Name | Description | |
|---|---|---|
![]() ![]() | Explicit(JsonValue to Int32) | Enables explicit casts from an instance of type JsonValue to a Int32 object. |
![]() ![]() | Explicit(JsonValue to UInt32) | Enables explicit casts from an instance of type JsonValue to a UInt32 object. |
![]() ![]() | Explicit(JsonValue to Int16) | Enables explicit casts from an instance of type JsonValue to a Int16 object. |
![]() ![]() | Explicit(JsonValue to Single) | Enables explicit casts from an instance of type JsonValue to a Single object. |
![]() ![]() | Explicit(JsonValue to UInt64) | Enables explicit casts from an instance of type JsonValue to a UInt64 object. |
![]() ![]() | Explicit(JsonValue to Double) | Enables explicit casts from an instance of type JsonValue to a Double object. |
![]() ![]() | Explicit(JsonValue to String) | Enables explicit casts from an instance of type JsonValue to a String object. |
![]() ![]() | Explicit(JsonValue to Int64) | Enables explicit casts from an instance of type JsonValue to a Int64 object. |
![]() ![]() | Explicit(JsonValue to Decimal) | Enables explicit casts from an instance of type JsonValue to a Decimal object. |
![]() ![]() | Explicit(JsonValue to DateTime) | Enables explicit casts from an instance of type JsonValue to a DateTime object. |
![]() ![]() | Explicit(JsonValue to DateTimeOffset) | Enables explicit casts from an instance of type JsonValue to a DateTimeOffset object. |
![]() ![]() | Explicit(JsonValue to Boolean) | Enables explicit casts from an instance of type JsonValue to a Boolean object. |
![]() ![]() | Explicit(JsonValue to Char) | Enables explicit casts from an instance of type JsonValue to a Char object. |
![]() ![]() | Explicit(JsonValue to Uri) | Enables explicit casts from an instance of type JsonValue to a Uri object. |
![]() ![]() | Explicit(JsonValue to UInt16) | Enables explicit casts from an instance of type JsonValue to a UInt16 object. |
![]() ![]() | Explicit(JsonValue to Guid) | Enables explicit casts from an instance of type JsonValue to a Guid object. |
![]() ![]() | Explicit(JsonValue to Byte) | Enables explicit casts from an instance of type JsonValue to a Byte object. |
![]() ![]() | Explicit(JsonValue to SByte) | Enables explicit casts from an instance of type JsonValue to a SByte object. |
![]() ![]() | Implicit(Boolean to JsonValue) | Enables implicit casts from type Boolean to a JsonPrimitive. |
![]() ![]() | Implicit(Byte to JsonValue) | Enables implicit casts from type Byte to a JsonPrimitive. |
![]() ![]() | Implicit(Char to JsonValue) | Enables implicit casts from type Char to a JsonPrimitive. |
![]() ![]() | Implicit(DateTime to JsonValue) | Enables implicit casts from type DateTime to a JsonPrimitive. |
![]() ![]() | Implicit(DateTimeOffset to JsonValue) | Enables implicit casts from type DateTimeOffset to a JsonObject. |
![]() ![]() | Implicit(Decimal to JsonValue) | Enables implicit casts from type Decimal to a JsonPrimitive. |
![]() ![]() | Implicit(Double to JsonValue) | Enables implicit casts from type Double to a JsonPrimitive. |
![]() ![]() | Implicit(Guid to JsonValue) | Enables implicit casts from type Guid to a JsonPrimitive. |
![]() ![]() | Implicit(Int16 to JsonValue) | Enables implicit casts from type Int16 to a JsonPrimitive. |
![]() ![]() | Implicit(Int32 to JsonValue) | Enables implicit casts from type Int32 to a JsonPrimitive. |
![]() ![]() | Implicit(Int64 to JsonValue) | Enables implicit casts from type Int64 to a JsonPrimitive. |
![]() ![]() | Implicit(SByte to JsonValue) | Enables implicit casts from type SByte to a JsonPrimitive. |
![]() ![]() | Implicit(Single to JsonValue) | Enables implicit casts from type Single to a JsonPrimitive. |
![]() ![]() | Implicit(String to JsonValue) | Enables implicit casts from type String to a JsonPrimitive. |
![]() ![]() | Implicit(UInt16 to JsonValue) | Enables implicit casts from type UInt16 to a JsonPrimitive. |
![]() ![]() | Implicit(UInt32 to JsonValue) | Enables implicit casts from type UInt32 to a JsonPrimitive. |
![]() ![]() | Implicit(UInt64 to JsonValue) | Enables implicit casts from type UInt64 to a JsonPrimitive. |
![]() ![]() | Implicit(Uri to JsonValue) | Enables implicit casts from type Uri to a JsonPrimitive. |
| Name | Description | |
|---|---|---|
![]() | ReadAsType(Type) | Overloaded. Reads the JsonValueExtensions as a type with specified value. (Defined by JsonValueExtensions.) |
![]() | ReadAsType<T>() | Overloaded. Reads the JsonValueExtensions as an object. (Defined by JsonValueExtensions.) |
![]() | ReadAsType<T>(T) | Overloaded. Reads the JsonValueExtensions as an object with specified fallback. (Defined by JsonValueExtensions.) |
![]() | ToJsonObject | Converts the specified items to Json object. (Defined by JsonValueLinqExtensions.) |
![]() | TryReadAsType(Type, Object) | Overloaded. Tries to read the JsonValueExtensions as a type. (Defined by JsonValueExtensions.) |
![]() | TryReadAsType<T>(T) | Overloaded. Tries to read the JsonValueExtensions as a generic type. (Defined by JsonValueExtensions.) |
| Name | Description | |
|---|---|---|
![]() ![]() | IEnumerable.GetEnumerator | Gets the JsonValue enumerator. |
![]() ![]() | IDynamicMetaObjectProvider.GetMetaObject | Gets the JsonValue meta object. |
