Skip to main content Skip to complementary content

ToString Method

Overloads

ToString()

Creates a string representation of the underlying json structure. Equivalent to ToString(Formatting.Indented)

ToString(Formatting)

Creates a string representation of the underlying json structure.

ToString()

Creates a string representation of the underlying json structure. Equivalent to ToString(Formatting.Indented)

Declaration

      public override string ToString()
    

Returns

Type Description
System.String

The string representation of the underlying json structure.

Overrides

System.Object.ToString()

ToString(Formatting)

Creates a string representation of the underlying json structure.

Declaration

      public string ToString(Formatting formatting)
    

Parameters

Type Name Description
Newtonsoft.Json.Formatting formatting

Formatting of the string.

Returns

Type Description
System.String

The string representation of the underlying json structure.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!