MCPcopy Create free account
hub / github.com/OpenReservation/OpenReservation / fromJson

Function fromJson

OpenReservation/wwwroot/Scripts/angular.js:1257–1261  ·  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

1255 * @returns {Object|Array|string|number} Deserialized JSON string.
1256 */
1257 function fromJson(json) {
1258 return isString(json)
1259 ? JSON.parse(json)
1260 : json;
1261 }
1262
1263 var ALL_COLONS = /:/g;
1264

Callers 1

Calls 1

isStringFunction · 0.85

Tested by

no test coverage detected