by tiborsaas · 6y ago · 0 comments
const res = await fetch(url);
const data = await res.json();
For posting you do need JSON.stringify(data), but I never thought of it as painful, just a single line.It does not do it automatically. Even in your example, you call `Response.json()` to do the parsing. If you change that to `Response.text()` it will be text instead. If you don't include the `.json()` call, nothing will be parsed from the body.