change output file ext to json