{"width":"100%","blog_url":"https://web-dev.hatenablog.com/","version":"1.0","height":"190","url":"https://web-dev.hatenablog.com/entry/web/js/lang/check-if-json-property-exists","provider_url":"https://hatena.blog","description":"JavaScript \u3067\u3001JSON \u306b\u30ad\u30fc\uff08\u30d7\u30ed\u30d1\u30c6\u30a3\uff09\u304c\u5b58\u5728\u3059\u308b\u304b\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u3092\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002 \u65b9\u6cd5 \u6b21\u306e\u3088\u3046\u306b\u66f8\u3044\u3066\u30c1\u30a7\u30c3\u30af\u3057\u307e\u3059\u3002 '\u30ad\u30fc\u306e\u540d\u524d' in \u691c\u67fb\u5bfe\u8c61\u306eJSON \u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u5834\u5408\u306f true\u3001\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f false \u304c\u8fd4\u5374\u3055\u308c\u307e\u3059\u3002 \u4f8b \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002 <!DOCTYPE html> <html lang=\"ja\"> <head> <meta charset=\"UTF-8\"> </head> <body> <script> function check(json) { if ('name' in json) { console.log('name\u6709\u2026","title":"JavaScript JSON\u306b\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5","blog_title":"C#, Python, Web\u958b\u767a","author_url":"https://blog.hatena.ne.jp/mamorums/","published":"2022-10-30 01:15:00","provider_name":"Hatena Blog","author_name":"mamorums","categories":["JS/CSS/HTML"],"type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fweb-dev.hatenablog.com%2Fentry%2Fweb%2Fjs%2Flang%2Fcheck-if-json-property-exists\" title=\"JavaScript JSON\u306b\u30ad\u30fc\u304c\u5b58\u5728\u3059\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5 - C#, Python, Web\u958b\u767a\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null}