From 01e59bb44b306201078fd40eafcc8d36734cfee3 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Fri, 18 Aug 2017 21:42:37 -0700 Subject: [PATCH] RELNOTES: Deprecate goog.json.parse. Use JSON.parse. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=165786782 --- closure/goog/json/json.js | 1 + 1 file changed, 1 insertion(+) diff --git a/closure/goog/json/json.js b/closure/goog/json/json.js index def9b4adfa..c783b43a57 100644 --- a/closure/goog/json/json.js +++ b/closure/goog/json/json.js @@ -121,6 +121,7 @@ goog.json.setErrorLogger = function(errorLogger) { * @param {*} s The JSON string to parse. * @throws Error if s is invalid JSON. * @return {Object} The object generated from the JSON string, or null. + * @deprecated Use JSON.parse. */ goog.json.parse = goog.json.USE_NATIVE_JSON ? /** @type {function(*):Object} */ (goog.global['JSON']['parse']) :