Fix trailing commas in JSON