json: do not treat an empty body as an error

Sending an empty json body when no fields are mandatory should not result in a "Bad request".