Created
March 3, 2018 07:16
-
-
Save Kalki5/1f26cd9e9d96c69c24fe8dbe3c063c7e to your computer and use it in GitHub Desktop.
Dummy json generator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
'repeat(30, 60)': { | |
"model": "common.job", | |
"pk": '{{index()}}', | |
"fields": { | |
"title": '{{lorem(1, "words")}}', | |
"company_id": '{{integer()}}', | |
"level": '{{random("beginner", "intermediate", "expert")}}', | |
"location": "{{country()}}", | |
"address": '{{integer(100, 999)}} {{street()}}, {{city()}}, {{state()}}, {{integer(100, 10000)}}', | |
"employment_type": '{{random("contract","freelance","fulltime","parttime")}}', | |
"experience": '{{integer()}}', | |
"role": '{{random("Technical", "Management", "Administration", "Architecture", "Executive", "Other")}}', | |
"job_description": '{{lorem(1, "paragraphs")}}', | |
"education": '{{random("BE", "MBA", "B.Sc", "M.Sc", "ME", "M.Tech", "B.Tech", "Phd", "B.com", "BBA", "MCA", "BL", "M.com", "SSLC", "HSC")}}', | |
"ctc": '{{integer(150000, 6000000)}}', | |
"openings": '{{integer()}}', | |
"expires_on": '{{moment(this.date(new Date(), new Date(2019, 0, 1) )).format("YYYY-MM-DD")}}', | |
"contact": "[{\"name\": \"{{firstName()}}\", \"email\":\"{{surname().toLowerCase()}}@{{company().toLowerCase()}}{{domainZone()}}\", \"phone\": \"+1 {{phone()}}\"}]", | |
"is_active": '{{bool()}}', | |
"is_published": '{{bool()}}', | |
"created_at": '{{moment(this.date(new Date(2016, 0, 1), new Date())).format("YYYY-MM-DDTHH:mm:ss[Z]")}}', | |
"updated_at": '{{moment(this.date(new Date(2016, 0, 1), new Date())).format("YYYY-MM-DDTHH:mm:ss[Z]")}}', | |
"deleted_at": null | |
} | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment