Share via


JsonObject.ToString Method

Definition

Retrieves the JSON representation of the encapsulated value.

public:
 virtual Platform::String ^ ToString() = ToString;
winrt::hstring ToString();
public string ToString();
function toString()
Public Function ToString () As String

Returns

String

Platform::String

winrt::hstring

A JSON representation of the encapsulated value.

Implements

Remarks

If the ValueType is String, then the returned string will be properly escaped and double quoted. This method is used for serializing the encapsulated value into a valid JSON format.

Applies to