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

Function fromJson

lib/test/angular/1.5.0/angular.js:1280–1284  ·  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 JSON string.

(json)

Source from the content-addressed store, hash-verified

1278 * @returns {Object|Array|string|number} Deserialized JSON string.
1279 */
1280function fromJson(json) {
1281 return isString(json)
1282 ? JSON.parse(json)
1283 : json;
1284}
1285
1286
1287var ALL_COLONS = /:/g;

Callers 1

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected