Closed bhargavnova closed 9 months ago
let me try this one
would like to work on this
Sure!
I'm too working on this issue
Hi @onkar-kota , @ananyapillai72 was already working on this issue, she has also submitted her script, so if you can make another script that can also handle nested dictionaries, if you are interested in that, you can work on that part.
For example, @ananyapillai72 , script can handle the below structure,
{
"name": "Test37",
"status": "done",
"slug": "test-375960",
"date": "13-10-2023",
"author": "unknown",
"probability": "89%",
"result": "70%",
"final_status": "failed"
},
{
"name": "Test38",
"status": "pending",
"slug": "test-385960",
"date": "13-10-2023",
"author": "unknown",
"probability": "80%",
"result": null,
"final_status": null
}
]
Now you can working script that can handle below structure,
[
{
"name": "Test37",
"status": "done",
"slug": "test-375960",
"date": "13-10-2023",
"author": "unknown",
"probability": "89%",
"result": "70%",
"final_status": "failed",
"connected": {
"run_again": true,
"next_test": "Test38",
"next_test_status": "pending"
}
},
{
"name": "Test38",
"status": "pending",
"slug": "test-385960",
"date": "13-10-2023",
"author": "unknown",
"probability": "80%",
"result": null,
"final_status": null
}
]
Ohk got the point, ill try to solve this!
Hi @ananyapillai72, Thank you for your contribution :), you can check on other open issues, or you can also submit one of your own.
Happy Coding!
Hey @bhargavnova should I push to json_to_csv existing folder or should I create a new folder?
Hi @onkar-kota , let's keep it in the same folder, otherwise things will be hard to manage.
name your script, json_to_csv_with_nested_dict.py
Hi @bhargavnova I have resolved the issue can you please check my PR #63
Hi @onkar-kota, Thank you for your contribution :), you can check on other open issues, or you can also submit one of your own.
Happy Coding!
Objective
Develop a Python script that converts JSON (JavaScript Object Notation) data to CSV (Comma Separated Values) format. This script will provide a convenient way to transform structured JSON data into a tabular format that can be easily opened and manipulated in spreadsheet software.
Features
Example Usage
Difficulty
: IntermediateTags
: Python, JSON, CSV, Data ConversionAdditional Information
Contribution Guidelines
The updated guidelines can be found here.
Note:
folder_name
: json_to_csvscript_name
: json_to_csv