Adds missing .json and code to callback call