Megosztás a következőn keresztül:


JsonObject.TryParse(String, JsonObject) Method

Definition

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

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

Parameters

input
String

Platform::String

winrt::hstring

The specified JSON string.

result
JsonObject

The resultant JsonObject.

Returns

Boolean

bool

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

Applies to