JsonObject.TryParse method

Applies to Windows and Windows Phone

Parses the specified string that represents a JSON object into a JsonObject.

Syntax


public static bool TryParse(
  string input, 
  out JsonObject result
)

Parameters

input

Type: System.String [.NET] | Platform::String [C++]

The specified JSON string.

result (out parameter)

Type: JsonObject

The resultant JsonObject.

Return value

Type: System.Boolean [.NET] | Platform::Boolean [C++]

True if the JsonValue object was successfully created; otherwise, false.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Data.Json
Windows::Data::Json [C++]

Metadata

Windows.winmd

See also

JsonObject

 

 

Show:
© 2014 Microsoft