print collections as json