updated JSON API to represent associations as an array of ids