function fromJson(json) {
  return isString(json)
      ? JSON.parse(json)
      : json;
}
@ngdoc function
@name angular.fromJson
@module ng
@kind function

@description
Deserializes a JSON string.

@param {string} json JSON string to deserialize.
@returns {Object|Array|string|number} Deserialized JSON string.