Fixes XHR's json for Safari
Merge pull request #1208 from yurydelendik/safarijson

Fixes XHR's json for Safari