I am working on scrapy, i fetched some items from website and storing them in json files.
My items.py code is :
job_title = Field()
full_or_part_Time = Field()
location_affiliates = Field()
department = Field()
requisition_number = Field()
Actually after fetching , the items stored in the json file are in the following format
{"full_or_part_Time": ["Full Time"],
"department": ["808 - Spons Prj Accounting"],
"requisition_number": ["12-1407456"],
"job_title": ["Accountant"],
"location_affiliates": ["Mount Sinai Medical Center (Manhattan)"]}
But i want to save the items in the format i declared in the items.py file.
Can anyone please let me know how to arrange in the declared format.
Thanks in advance.
JSON objects are not meant to be ordered.
JSON specification