uwp中json字符串控件的格式

uwp中json字符串控件的格式,uwp,Uwp,uwp中是否有可以将json字符串格式化为更可读的控件 我是说如果我有一根像 我想要一个控件来格式化它 您可以解析字符串。在其中插入新行,然后x:将此方法绑定到TextBlock。Text: private string ParseString(string jsonString) { return jsonString.Replace(",", ",\n").Replace("{", "{\n").Replace("}", "\n}"); }

uwp中是否有可以将json字符串格式化为更可读的控件

我是说如果我有一根像

我想要一个控件来格式化它


您可以解析字符串。在其中插入新行,然后x:将此方法绑定到TextBlock。Text:

    private string ParseString(string jsonString)
    {
        return jsonString.Replace(",", ",\n").Replace("{", "{\n").Replace("}", "\n}");
    }