ksatish@gmail.com wrote:
[snip code]
Wasn't there any documentation to go with that script? That's the preferable
method to use software written by someone else ;)
Anyway -- First you have to undo what was probably changed by yourself:
$ diff -u json2csv_orig.py json2csv.py
--- json2csv_o
try:
import unicodecsv as csv
except ImportError:
import csv
import json
import operator
import os
from collections import OrderedDict
import logging
logging.basicConfig(level=logging.DEBUG)
class Json2Csv(object):
"""Process a JSON object to a CSV file"""
collection = None