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

Function fromJson

lib/test/angular/1.4.3/angular.js:1229–1233  ·  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

1227 * @returns {Object|Array|string|number} Deserialized JSON string.
1228 */
1229function fromJson(json) {
1230 return isString(json)
1231 ? JSON.parse(json)
1232 : json;
1233}
1234
1235
1236function timezoneToOffset(timezone, fallback) {

Callers 1

Calls 1

isStringFunction · 0.70

Tested by

no test coverage detected