UNPKG
@namecheap/tsoa-cli
Version:
latest (6.6.1)
6.6.1
4.1.7
4.1.6
4.1.5
4.1.4
4.1.3
Build swagger-compliant REST APIs using TypeScript and Node
lukeautry/tsoa
@namecheap/tsoa-cli
/
dist
/
utils
/
jsonUtils.js
12 lines
•
276 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
safeFromJson
= safeFromJson;
function
safeFromJson
(
json
) {
try
{
return
JSON
.
parse
(json); }
catch
{
return
undefined
; } }
//# sourceMappingURL=jsonUtils.js.map