I just started playing with the API recently so I could make reporting/automation scripts easier, but every time I use it to GET (with Curl on a ubuntu box if that matters) an advanced search group I made, I get a long single line string if I use the default (XML) and if I try JSON, there is a giant multiline header and then again, a giant single line string that would be normal JSON if it where actually spaced. Because of the output I can't parse anything effectively.
What am I doing wrong?
Side note, can we really not export data as a CSV from the API even though we can get it from the GUI?