Fixing JSON parsing issues on http response