Windows.Data.Json Windows.Data.Json Windows.Data.Json Windows.Data.Json Windows.Data.Json Namespace

Provides support for JSON arrays, values, and objects.


JsonArray JsonArray JsonArray JsonArray JsonArray

Represents a JSON array.

JsonArray inherits the IVector(IJsonValue) and IIterable(IJsonValue) interfaces, which provide methods to iterate through the elements in the array and update its contents.

JsonError JsonError JsonError JsonError JsonError

Represents an error encountered while parsing JSON data.

JsonObject JsonObject JsonObject JsonObject JsonObject

Represents a JSON object containing a collection of name and JsonValue pairs.

JsonObject is an activatable class that implements JsonValue and the IMap; interface such that its name/value pairs can be manipulated like a dictionary. When there are values with duplicated names, the last name/value pair will be stored.

JsonValue JsonValue JsonValue JsonValue JsonValue

Implements the IJsonValue interface which represents a JSON value.

A JsonValue object can represent the three primitive JSON value types of Boolean, Number and String, and can also represent the complex value types of Array and Object by providing ways to access them.


IJsonValue IJsonValue IJsonValue IJsonValue IJsonValue

Encapsulates a JSON value.


JsonErrorStatus JsonErrorStatus JsonErrorStatus JsonErrorStatus JsonErrorStatus

Defines errors encountered while parsing JSON data.

JsonValueType JsonValueType JsonValueType JsonValueType JsonValueType

Specifies the JSON value type of a JsonValue object.


string jsonString = await FileIO.ReadTextAsync(await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/MyData.json")));
var rootObject = JsonObject.Parse(jsonString);

See also