Edit

Share via


JsonPrimitive Class

Definition

C#
public class JsonPrimitive : System.Json.JsonValue
Inheritance
JsonPrimitive

Remarks

Note

The System.Json namespace was designed for Silverlight, which is no longer supported. For processing JSON, we recommend using APIs in the System.Text.Json namespace instead.

Constructors

Properties

Count (Inherited from JsonValue)
Item[Int32] (Inherited from JsonValue)
Item[String] (Inherited from JsonValue)
JsonType

Methods

ContainsKey(String) (Inherited from JsonValue)
Save(Stream)
Save(TextWriter) (Inherited from JsonValue)
ToString() (Inherited from JsonValue)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

(Inherited from JsonValue)

Applies to

Product Versions
.NET 6 (package-provided), 7 (package-provided), 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)