safe-JSON-parsing-check-for-type-undefined