fix REST objects after changes in JSON output