json for Collections and tests for RootCommunities