fix how association roots are extracted from json data