this is right: collection = Collection.from_json("...") this should throw an error in the second line: collection = Collection([dataset]) collection.from_json("...")