UNPKG

@etherspot/modular-sdk

Version:

Etherspot Modular SDK - build with ERC-7579 smart accounts modules

18 lines 455 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseJson = parseJson; exports.stringifyJson = stringifyJson; function parseJson(raw, defaultValue) { let result; try { result = JSON.parse(raw); } catch (err) { result = defaultValue; } return result; } function stringifyJson(value, space) { return JSON.stringify(value, null, space); } //# sourceMappingURL=json-utils.js.map