MCPcopy
hub / github.com/jquery/esprima / fromJson

Function fromJson

test/3rdparty/angular-1.2.5.js:1031–1035  ·  view source on GitHub ↗

* @ngdoc function * @name angular.fromJson * @function * * @description * Deserializes a JSON string. * * @param {string} json JSON string to deserialize. * @returns {Object|Array|Date|string|number} Deserialized thingy.

(json)

Source from the content-addressed store, hash-verified

1029 * @returns {Object|Array|Date|string|number} Deserialized thingy.
1030 */
1031function fromJson(json) {
1032 return isString(json)
1033 ? JSON.parse(json)
1034 : json;
1035}
1036
1037
1038function toBoolean(value) {

Callers 1

$HttpProviderFunction · 0.85

Calls 1

isStringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…