JSON is now properly sent to the server