added json for relations