MCPcopy Index your code
hub / github.com/angular-ui/ui-router / fromJson

Function fromJson

test/angular/1.2/angular.js:1139–1143  ·  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

1137 * @returns {Object|Array|string|number} Deserialized thingy.
1138 */
1139function fromJson(json) {
1140 return isString(json)
1141 ? JSON.parse(json)
1142 : json;
1143}
1144
1145
1146function toBoolean(value) {

Callers 1

$HttpProviderFunction · 0.70

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected