* @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)
| 775 | * @returns {Object|Array|Date|string|number} Deserialized thingy. |
| 776 | */ |
| 777 | function fromJson(json) { |
| 778 | return isString(json) |
| 779 | ? JSON.parse(json) |
| 780 | : json; |
| 781 | } |
| 782 | |
| 783 | |
| 784 | function toBoolean(value) { |
no test coverage detected