UNPKG

@etherspot/data-utils

Version:
15 lines (14 loc) 273 B
// src/sdk/common/utils/parse-json.ts function parseJson(raw, defaultValue = null) { let result; try { result = JSON.parse(raw); } catch (err) { result = defaultValue; } return result; } export { parseJson }; //# sourceMappingURL=chunk-UTDYLPR7.mjs.map