Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladikk/JSON2CSV
Utility to convert json files to csv
https://github.com/vladikk/JSON2CSV
Last synced: about 2 months ago
JSON representation
Utility to convert json files to csv
- Host: GitHub
- URL: https://github.com/vladikk/JSON2CSV
- Owner: vladikk
- License: other
- Created: 2013-06-11T13:00:54.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-07-27T10:17:20.000Z (about 4 years ago)
- Last Synced: 2024-07-24T21:09:15.811Z (2 months ago)
- Language: Python
- Homepage:
- Size: 18.6 KB
- Stars: 38
- Watchers: 2
- Forks: 23
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JSON2CSV v2.0
JSON2CSV is a Apache2 Licensed python based utility that converts json data to a csv file.
## Getting Started
```
json2csv input_file.json output_file.csv
```If you pass in the following json file:
``` json
[
{
"id": 1,
"name": {
"first": "john",
"last": "johnson"
},
"age": 27,
"languages": [ "c#", "vb", "python" ]
},
{
"id": 2,
"name": {
"first": "scott",
"middle": "scottster",
"last": "scottson"
},
"age": 29,
"languages": [ "objective-c", "c++" ]
}
]
```You'll get the following csv file:
```
age ,id ,languages_0 ,languages_1 ,languages_2 ,name_first ,name_last ,name_middle
27 ,1 ,c# ,vb ,python ,john ,johnson ,
29 ,2 ,objective-c ,c++ , ,scott ,scottson ,scottster
```### Prerequisites
Python 3.x
### Installing
pip install git+https://github.com/vladikk/JSON2CSV
## Running the tests
runtests.sh
## Authors
* **Vladik Khononov** - *Initial work* - [vladikk](https://github.com/vladikk)
See also the list of [contributors](https://github.com/vladikk/JSON2CSV/contributors) who participated in this project.
## License
This project is licensed under the Apache License - see the [LICENSE.md](LICENSE.md) file for details