I'm wondering if folks have preferred tools for doing something similar to David Everly's excellent shell script for retrieving activity data via API? That script actually does everything I'd like to accomplish (with support for both any activity type, and narrowing by listId), yet jq regularly fails on certain undesirables in Marketo JSON data ('parse error: Invalid string: control characters from U+0000 through U+001F...').
This python tool GitHub - kioy/MarketoExportActivities: Exporting lead activities via Marketo REST API is also quite useful, but is currently coded to only handle certain activity types.
Thanks.
Robert
yet jq regularly fails on certain undesirables in Marketo JSON data ('parse error: Invalid string: control characters from U+0000 through U+001F...').
It's not valid JSON if it has unescaped control characters. Are you sure this is actually coming from Marketo? Can you post a raw HTTP trace that has these characters in the response?
Oops, forgot the link to David's script: http://developers.marketo.com/blog/retrieve-activities-for-a-single-lead-using-rest-api/