I'm interested in creating multiple new prospects from a CSV file with the batch_create method for Prospects objects in the pypardot package in Python. The method calls for the prospect information (email, name, ...) in JSON format. After reading in the csv file I'm using json.dumps() to create the JSON format but I keep on getting an
error#71: invalid JSON (http://developer.pardot.com/kb/error-codes-messages/#error-code-71).
Here is what my info looks like after json.dumps()
{"prospects": [{"first_name": "fname1", "last_name": "lname1", "email": "[email protected]"},
{"first_name": "fname2", "last_name": "lname2", "email": "[email protected]"}]}
The data type is a string.