[api] make JSON the default MIME type