change the extension to json