check if a koa body should be interpreted as JSON