Fixing client to send proper JSON