Allow sending json data instead of form encoding