Fixes XHR's json for Safari