Runtime: fix the JSON polyfill to use the native JSON object when available