fixed the 'empty body' test, and trying stupid simple JSON parsing when JSON.parse isn't available