There was a developer who, not knowing the correct JSON format for key-value pairs, created a JSON body that looks like this: { "dog" }
Instead of { "dog": "dog" }
I must send the request from a JavaScript file, and the body needs to be in JSON format. I've attempted sending raw JSON using Ajax, fetch, Axios, and xmlHttp, but they all format it as key-value pairs. How can I successfully send this request?