Replaced BSONCollection with JSONCollection.