API now returns json as type application/json (and correctly encodes the response).