Abstract out JSON parsing; print CF response on fail