translate: json cleanup improvement