core: request JSON type when getting the metadata URL