KGy SOFT

KGySoft.Json Namespace

KGy SOFT JSON Libraries Help
Contains types that make possible in-memory JSON manipulation (LINQ to JSON), similarly to the System.Xml.Linq namespace for XML content.
See the Remarks section of the JsonValue struct for details and examples.
Classes

  ClassDescription
Public classJsonArray
Represents a JSON array, interpreted as a list of JsonValue elements. Use the ToString or WriteTo methods to convert it to JSON.
See the Remarks section for details.
Public classJsonModule
Represents the KGySoft.Json module.
Public classJsonObject
Represents a JSON object, interpreted as a string-JsonValue dictionary and also as a list of JsonProperty elements. Use the ToString or WriteTo methods to convert it to JSON.
See the Remarks section for details.
Public classJsonValueExtensions
Provides extension methods for JsonValue conversions.
Structures

  StructureDescription
Public structureJsonProperty
Represents a property in a JsonObject.
Public structureCode exampleJsonValue
Represents a value that can be converted to JSON. It can hold JavaScript primitive types such as Null, Boolean, Number and String, and it can be assigned also from JsonArray and JsonObject types. Its default value represents the JavaScript Undefined value. Use the ToString or WriteTo methods to convert it to JSON.
See the Remarks section for details and examples.
Enumerations

  EnumerationDescription
Public enumerationJsonDateTimeFormat
Specifies how DateTime, DateTimeOffset and DateOnly instances are formatted and parsed by the JsonValueExtensions methods.
Public enumerationJsonEnumFormat
Public enumerationJsonTimeFormat
Specifies how TimeSpan and TimeOnly instances are formatted and parsed by the JsonValueExtensions methods.
Public enumerationJsonValueType
Represents the possible values of the Type property of a JsonValue instance.