* @ngdoc function * @name angular.fromJson * @function * * @description * Deserializes a JSON string. * * @param {string} json JSON string to deserialize. * @returns {Object|Array|Date|string|number} Deserialized thingy.
(json)
| 1029 | * @returns {Object|Array|Date|string|number} Deserialized thingy. |
| 1030 | */ |
| 1031 | function fromJson(json) { |
| 1032 | return isString(json) |
| 1033 | ? JSON.parse(json) |
| 1034 | : json; |
| 1035 | } |
| 1036 | |
| 1037 | |
| 1038 | function toBoolean(value) { |
no test coverage detected
searching dependent graphs…