我有一个像这样的 json 数组:
[
{
"variable1":"example",
"variable2": "example1\nexample2\nexample3"
},
{
"variable1":"exampleLast\n",
"variable2": "example1\nexample2\nexample3"
}
]
Run Code Online (Sandbox Code Playgroud)
我正在尝试在 Flutter 中解析这个 json 列表。
List posts = json.decode(response.data);
当我尝试使用 'dart:convert' 时,它给出了 error FormatException... Control character in string (at line...)。
我在 Github 上发现了这个问题,但找不到解决方案。
https://github.com/dart-lang/convert/issues/10
| 归档时间: |
|
| 查看次数: |
4601 次 |
| 最近记录: |