axios add json body get code example
Example: axios post with body
const body = { a: 10 };
axios.post('/save', body);
// Axios automatically serializes JavaScript objects to JSON
// when passed to the axios.post function as the second parameter.
// This eliminates the need to serialize POST bodies to JSON.