Fixed POST request to correctly send JSON object