use window.JSON to prevent script errors on older browsers