JsonValue.TryParse(String, JsonValue) Method

Definition

Parses the specified string into a JsonValue.

public:
 static bool TryParse(Platform::String ^ input, [Out] JsonValue ^ & result);
 static bool TryParse(winrt::hstring const& input, [Out] JsonValue const& & result);
public static bool TryParse(string input, out JsonValue result);
Public Shared Function TryParse (input As String, ByRef result As JsonValue) As Boolean

Parameters

input
String

The specified string.

result
JsonValue

The new JsonValue object.

Returns

Boolean

bool

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

Applies to