Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
RELNOTES: Deprecate goog.json.parse. Use JSON.parse.
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=165786782
  • Loading branch information
vrana authored and John Plaisted committed Aug 23, 2017
1 parent 39f39bd commit 01e59bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions closure/goog/json/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']) :
Expand Down

0 comments on commit 01e59bb

Please sign in to comment.