associations as Json tree