fix json mimetype and extension