Add the EncodeIndent method.

Provide a pretty json encoding method