added exception handler to JsonExtensions.cs:PrettifyJson() - fixes #355.