safeJson added for IE.