MCPcopy Create free account
hub / github.com/binux/qiandao / fromJson

Function fromJson

web/static/components/angularjs/angular.js:1132–1136  ·  view source on GitHub ↗

* @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 thingy.

(json)

Source from the content-addressed store, hash-verified

1130 * @returns {Object|Array|string|number} Deserialized thingy.
1131 */
1132function fromJson(json) {
1133 return isString(json)
1134 ? JSON.parse(json)
1135 : json;
1136}
1137
1138
1139function toBoolean(value) {

Callers 1

$HttpProviderFunction · 0.85

Calls 2

parseMethod · 0.80
isStringFunction · 0.70

Tested by

no test coverage detected