I’ve come across an issue where my API request bodies are unexpectedly being escaped.
e.g.
jsonEncode( {
"header": "test \n string",
});
--> '{"header":"test \\n string"}'
In javascript, JSON.stringify does not escape the \n.
I’m confused why dart is escaping strings by default, and can it be turned off?