MCPcopy Create free account
hub / github.com/apache/cloudstack / fromJson

Function fromJson

tools/ngui/static/js/lib/angular.js:777–781  ·  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

775 * @returns {Object|Array|Date|string|number} Deserialized thingy.
776 */
777function fromJson(json) {
778 return isString(json)
779 ? JSON.parse(json)
780 : json;
781}
782
783
784function toBoolean(value) {

Callers 1

$HttpProviderFunction · 0.85

Calls 2

isStringFunction · 0.85
parseMethod · 0.65

Tested by

no test coverage detected