got error 422 when posting to json.