json representation for Collections, added StubCollection