added json formatting for instances