# ArcoJson
A professional, feature-rich Python library for converting JSON data to CSV format with advanced capabilities.
## Features
- ✨ Convert JSON to CSV with ease
- 🔄 Handle nested JSON structures automatically
- 📊 Batch conversion support
- ✅ Data validation
- 🎨 Customizable delimiters and formatting
- 📝 Comprehensive documentation
- 🔍 Type hints for better IDE support
- ⚡ High performance
## Installation
```bash
pip install ArcoJsonfrom ArcoJson import JSONConverter
# Create converter instance
converter = JSONConverter()
# Simple conversion
data = [
{"name": "John", "age": 30, "city": "NYC"},
{"name": "Jane", "age": 25, "city": "LA"}
]
converter.convert_to_csv(
data=data,
output_file="output.csv"
)data = [
{
"name": "John",
"age": 30,
"address": {
"city": "NYC",
"country": "USA"
}
}
]
converter.convert_to_csv(
data=data,
output_file="output.csv",
flatten_nested=True,
delimiter=','
)converter.convert_batch(
input_files=["file1.json", "file2.json", "file3.json"],
output_dir="output/",
flatten_nested=True
)preview = converter.preview_conversion(
data=data,
rows=5
)
print(preview)Full documentation available at: Read the Docs
Contributions are welcome! Please read our Contributing Guide.
MIT License - see LICENSE file for details.