/// <summary> /// Create a human readable string from the json with specified indent spaces /// </summary> /// <param name="input"></param> /// <param name="spaces"></param> /// <returns></returns> public static string Beautify(string input, byte spaces) { var i = new string(' ', spaces); return(Formatter.PrettyPrint(input, i)); }
/// <summary> /// Create a human readable string from the json /// </summary> /// <param name="input"></param> /// <returns></returns> public static string Beautify(string input) { var i = new string(' ', JSON.Parameters.FormatterIndentSpaces); return(Formatter.PrettyPrint(input, i)); }