return raw data in json if uri ends with .json