{"height":"190","provider_name":"Hatena Blog","published":"2012-12-10 11:10:51","url":"https://ikm.hatenablog.jp/entry/2012/12/10/111051","width":"100%","type":"rich","author_name":"a2ikm","author_url":"https://blog.hatena.ne.jp/a2ikm/","image_url":null,"blog_title":"There's an echo in my head","categories":["gem","ruby","activerecord"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fikm.hatenablog.jp%2Fentry%2F2012%2F12%2F10%2F111051\" title=\"serialize-rails gem\u3067JSON\u3092DB\u306b\u683c\u7d0d\u3059\u308b - There&#39;s an echo in my head\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","provider_url":"https://hatena.blog","title":"serialize-rails gem\u3067JSON\u3092DB\u306b\u683c\u7d0d\u3059\u308b","description":"ActiveRecord\u306eserialize\u306fYAML\u306b\u3057\u304b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3051\u3069\u3001serialize-rails\u3092\u4f7f\u3046\u3068JSON\u3084XML\u3001Ruby\u306eMarshal\u3082\u4fdd\u5b58\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002 # Gemfile source 'http://rubygems.org' gem 'rails', '3.2.9' # 3.0.0 \u4ee5\u4e0a\u304c\u5fc5\u8981 gem 'serialize-rails' # app/models/user.rb class User < ActiveRecord::Base serialize :some_json_value, Hash, format: :json end \u30b7\u30ea\u30a2\u30e9\u30a4\u30ba\u2026","blog_url":"https://ikm.hatenablog.jp/"}