This project has moved and is read-only. For the latest updates, please go here.

Is it not possible to specify the Indentation when using JsonConvert.SerializeObject ?

Feb 4, 2012 at 11:20 PM

According to the current documentation of the static method JsonConvert.SerializeObject, the Formatting parameter indicates how the output is formatted.

( )

According to the documentation of the enum Formatting.Indented, it causes child objects to be indented according to the Indentation and IndentChar settings.

( )


The latter two properties are non-static properties of class JsonTextWriter.

( )


My question is, how do you set the Indentation/IndentChar properties of the JsonTextWriter instance that the static method JsonConvert.SerializeObject uses ?