I have a json array like this:
[
{
"variable1":"example",
"variable2": "example1\nexample2\nexample3"
},
{
"variable1":"exampleLast\n",
"variable2": "example1\nexample2\nexample3"
}
]
I am trying to parse this json a List in Flutter.
List posts = json.decode(response.data);
When I tried using 'dart:convert' it gives error FormatException... Control character in string (at line...)
.
I found this issue on Github but I can not find solution.
https://github.com/dart-lang/convert/issues/10