I have an object in Angular
const obj = {name: 'someName'};
And I stringify it:
const data = JSON.stringify(obj);
And when I'm trying to send this data to Django backend (and then, backend try to deserialize string I get an error)
JSONDecodeError at /some_endpoint
Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
And how request looks like in Chrome DevTools, in request payload
data: "{"name":"someName"}"
How to correct send this payload? Do I have to change data before send?