UNPKG
@etherspot/data-utils
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.0
Etherspot Data Utils
etherspot.dev
etherspot/etherspot-data-utils
@etherspot/data-utils
/
dist
/
esm
/
chunk-UTDYLPR7.mjs
15 lines
(14 loc)
•
273 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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