在Powershell中将嵌套的json转换为csv

时间:2019-02-28 13:48:35

标签: json powershell

我需要将一些JSON数据导入到数据库中。我想使用PowerShell并弄清楚一点,但是我需要帮助来整理最后的部分。 如何在Powershell中将以下嵌套JSON转换为纯CSV? 以下是JSON数据:

$openings = '{"objects": [ { "id": 136691, "title": "UX Desginer",
"description": "Hiring a UX Designer for our Front End Team", "position_type": "full_time", "is_remote_allowed": false, "is_archived": false, "is_private": false, "state": "Draft", "location": { "city": "Bangalore", "state": "Karnataka", "zipcode": "560078", "country": "India" }, "team": "Front-end Team", "created_date": 1472804002, "modified_date": 1472804018, "application_email": "recruiterbox-dmcc0616@applications.recruiterbox.com", "hosted_url": "https://recruiterbox.recruiterbox.com/jobs/d933h5yh" }, { "id": 136691, "title": "UX Desginer",
"description": "Hiring a UX Designer for our Front End Team", "position_type": "full_time", "is_remote_allowed": false, "is_archived": false, "is_private": false, "state": "Draft", "location": { "city": "Bangalore", "state": "Karnataka", "zipcode": "560078", "country": "India" }, "team": "Front-end Team", "created_date": 1472804002, "modified_date": 1472804018, "application_email": "recruiterbox-dmcc0616@applications.recruiterbox.com", "hosted_url": "https://recruiterbox.recruiterbox.com/jobs/d933h5yh" } ], "meta": { "total": 1, "limit": 20, "offset": 0 }}'

0 个答案:

没有答案