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

Function fromJson

lib/test/angular/1.6.7/angular.js:1467–1471  ·  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

1465 * @returns {Object|Array|string|number} Deserialized JSON string.
1466 */
1467function fromJson(json) {
1468 return isString(json)
1469 ? JSON.parse(json)
1470 : json;
1471}
1472
1473
1474var ALL_COLONS = /:/g;

Callers 1

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected