{"id":3774,"date":"2014-01-09T20:21:41","date_gmt":"2014-01-09T11:21:41","guid":{"rendered":"http:\/\/soundengine.jp\/wordpress\/penguin_press\/?p=3774"},"modified":"2014-02-06T23:40:29","modified_gmt":"2014-02-06T14:40:29","slug":"jquery%e3%81%a7json%e4%bd%bf%e3%81%8a%e3%81%86%e3%81%a8%e3%82%8b%e3%81%99%e3%82%82%e3%80%81%e3%80%8cuncaught-typeerror%ef%bd%9ehas-no-method-tojson%e3%80%8d%e3%81%ae%e3%82%a8%e3%83%a9%e3%83%bc","status":"publish","type":"post","link":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/miscellaneous\/3774\/","title":{"rendered":"jQuery\u3067json\u4f7f\u304a\u3046\u3068\u308b\u3059\u308b\u3082\u3001\u300cUncaught TypeError\uff5ehas no method &#8216;toJSON&#8217;\u300d\u306e\u30a8\u30e9\u30fc\u3001\u3072\u3068\u307e\u305a\u89e3\u6c7a"},"content":{"rendered":"<p>jQuery\u3067json\u4f7f\u3046\uff08json\u306e\u751f\u6210\uff09\u306e\u306b\u3001toJSON\u3092\u4f7f\u3046\u3068\u3044\u3044\u3068\u66f8\u3044\u3066\u3042\u3063\u305f\u306e\u3067\u4f7f\u3063\u3066\u307f\u305f\u3068\u3053\u308d\u3001<\/p>\n<p>[javascript]<br \/>\nvar test =<br \/>\n{<br \/>\n\ttest: &#8216;test&#8217;,<br \/>\n};<\/p>\n<p>console.log( $.toJSON( test ) );<br \/>\n[\/javascript]<\/p>\n<p>\u3068\u3044\u3046\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3067\u3001<\/p>\n<blockquote><p>Uncaught TypeError: Object function (e,n){return new x.fn.init(e,n,t)} has no method &#8216;toJSON&#8217;<\/p><\/blockquote>\n<p>\u307f\u305f\u3044\u306a\u30a8\u30e9\u30fc\u304c\u3002\u306a\u3093\u304b\u305d\u3093\u306a\u30e1\u30bd\u30c3\u30c9\u304c\u306a\u3044\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u3046\u30fc\u3093\u3001\u3069\u3046\u3057\u305f\u3082\u306e\u304b\u8272\u3005\u60a9\u3093\u3067\u3044\u305f\u304c\u3001\u3088\u304f\u3088\u304f\u8abf\u3079\u308b\u3068jQuery\u305d\u306e\u3082\u306e\u306b\u306ftoJSON\u306a\u3069\u306a\u3044\u3089\u3057\u3044\u3002<\/p>\n<p>\u3069\u3046\u3084\u3089<a href=\"https:\/\/code.google.com\/p\/jquery-json\/\">jquery-json &#8211; JSON plugin for jQuery, provides simple ways to convert to JSON and back again. &#8211; Google Project Hosting<\/a>\u3068\u3044\u3046\u3082\u306e\u3092\u4f7f\u308f\u306a\u3044\u3068\u3060\u3081\u3089\u3057\u3044\u3002\u3078\u30fc\u3001\u305d\u3046\u306a\u3093\u3060\u3002<\/p>\n<p>[html]<br \/>\n&lt;script src=&quot;jquery.json-2.4.min.js&quot;&gt;&lt;\/script&gt;<br \/>\n[\/html]<\/p>\n<p>\u307e\u3060\u307e\u3060\u7d20\u4eba\u30ec\u30d9\u30eb\u306e\u65e5\u3005\u3067\u3042\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>jQuery\u3067json\u4f7f\u3046\uff08json\u306e\u751f\u6210\uff09\u306e\u306b\u3001toJSON\u3092\u4f7f\u3046\u3068\u3044\u3044\u3068\u66f8\u3044 &hellip; <a href=\"https:\/\/soundengine.jp\/wordpress\/penguin_press\/miscellaneous\/3774\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[56,21],"class_list":["post-3774","post","type-post","status-publish","format-standard","hentry","category-miscellaneous","tag-javascript","tag-programming"],"_links":{"self":[{"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/posts\/3774","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/comments?post=3774"}],"version-history":[{"count":6,"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/posts\/3774\/revisions"}],"predecessor-version":[{"id":3790,"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/posts\/3774\/revisions\/3790"}],"wp:attachment":[{"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/media?parent=3774"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/categories?post=3774"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soundengine.jp\/wordpress\/penguin_press\/wp-json\/wp\/v2\/tags?post=3774"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}