TypeScript Tested
Parse JSON into a typed value with a guard
Safely turn unknown JSON into a typed result by validating its shape instead of casting.
Loading snippets…
2 snippets
Safely turn unknown JSON into a typed result by validating its shape instead of casting.
Walk a path through nested dicts and lists and return a default instead of raising KeyError.