creates a jsons of instances associations