Skip to content
CSCosmos
TSViz
Concepts
Problems
Playground
GitHub
Toggle theme
Problems
Medium
unknown & guards
Safe JSON parse
Parse JSON, then narrow it to a required shape with guards before returning.
Show hints
Show solution
Solution
Reset
Run
Loading...
Run your code to see output and diagnostics.