Properly create JSON for send.