Prepare CollectionModel to work with JSON queries.