Kamranicus

Kamran Ayub is a developer and designer in Minneapolis, Minnesota. He specializes in .NET development with a dash of client-side and has passion for UX.

Fork me on GitHub

PrettyJson - Format your ugly JSON

This assumes you provide a valid JSON string. I don't guarantee what will happen otherwise. Example:

{"foo":"value","foo2": { "prop1": "val2" }}

The Code

The PrettyJson code in C#: