scheduler implements from_crawler. backwards compatible
Let scrapy.utils.serialize.ScrapyJSONEncoder do the serialization