json2csv icon indicating copy to clipboard operation
json2csv copied to clipboard

creating outline for mailchimp api json output file

Open latitude4all opened this issue 7 years ago • 0 comments

I am trying to use json2csv to convert output from mailchimp api, but I am getting an error

python gen_outline.py --collection nodes text.json -o templatejsonoutput.json

ValueError: Expecting property name: line 1 column 2 (char 1)

The original file text.json has a structure like that:

{'members': [{'id': 'xxxxx', 'email_address': '[email protected]', 'unique_email_id': 'xxx', 'email_type': 'html', 'status': 'unsubscribed', 'unsubscribe_reason': 'N/A (Unsubscribed by admin)', 'merge_fields': {'FNAME': '', 'LNAME': '', 'MMERGE3': ''}, 'stats': Do you know why I am getting this error? Thank you very much for any help.

latitude4all avatar Dec 24 '18 16:12 latitude4all