Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
huggingface
/
inference-playground
like
137
Running
App
Files
Files
Community
5
Fetching metadata from the HF Docker repository...
main
inference-playground
/
src
/
lib
/
utils
/
json.ts
Thomas G. Lopes
format
17c3edf
21 days ago
raw
Copy download link
history
blame
contribute
delete
Safe
105 Bytes
export
function
safeParse
(
str:
string
) {
try
{
return
JSON
.
parse
(str);
}
catch
{
return
null
;
}
}