JsonElement.GetRawText Method

Definition

Gets a string that represents the original input data backing this value.

public:
 System::String ^ GetRawText();
public string GetRawText ();
member this.GetRawText : unit -> string
Public Function GetRawText () As String

Returns

String

The original input data backing this value.

Exceptions

The parent JsonDocument has been disposed.

Remarks

If the JsonElement instance is built from a <xref:System.Text.Json.JsonNode>, the value of <xref:System.Text.Json.JsonNode.ToJsonString> is returned.

Applies to