getMetadata JSON endpoint should return json content-type