Send commands as JSON, not as forms.