Note there is no results the body is not JSON at all!
Expected Behavior
Either the CLI (1) fails building the map and reports that it currently does not support JSON lines and user needs to asses it manually. Or (2), preferably, it processes the plain text body, splits the JSON by new lines and parses them before mapping.
Steps to Reproduce
$ sf prepare https://developer.mixpanel.com/reference/query-api "mixpanel"
$ sf new mixpanel "list user activities"
$ sf map ...
Mixpanel' API returns "JSON Lines" in their
GET https://data.mixpanel.com/api/2.0/export
endpoint.This is incorrectly handled in map as
body.results
:Note there is no
results
the body is not JSON at all!Expected Behavior
Either the CLI (1) fails building the map and reports that it currently does not support JSON lines and user needs to asses it manually. Or (2), preferably, it processes the plain text body, splits the JSON by new lines and parses them before mapping.
Steps to Reproduce
Your Environment