title: Updating a json object from Rails console
body: <p>I'm working with an object (Account) in Rails that I want to update, and have encountered a JSON object when I try to update a Stripe attribute:</p>
  
  <pre><code>irb(main):001:0&gt; account = Account.find(1);
  irb(main):002:0* subscription = account.subscription
  [■]   Account Load (2.2ms)  SELECT  "accounts".* FROM "accounts" WHERE "accounts"."deleted_at" IS NULL AND "accounts"."id" = $1 LIMIT 1  [["id", 1]]
  =&gt; #&lt;Stripe::Subscription:0x35fbed4 id=sub_CPQps6J7nkb2hL&gt; JSON: {
    "id": "jhlakdjfhbjbf",
    "object": "subscription",
  
    "default_tax_rates": [
  
    ],
    "discount": null,
    "ended_at": null,
    "livemode": true,
    "metadata": {},
    "pending_setup_intent": null,
    "plan": {"id":"free-monthly","object":"plan","active":true,...},
    "quantity": 1,
    "schedule": null,
  }
  irb(main):003:0&gt; plan = subscription.plan
  =&gt; #&lt;Stripe::Plan:0x35b9994 id=free-monthly&gt; JSON: {
    "id": "tier-1",
    "object": "plan",
    "active": true,
    "aggregate_usage": null,
    "amount": 0,
    "billing_scheme": "per_unit",
    "created": 1491333713,
    "currency": "usd",
    "interval": "month"
  }
  </code></pre>
  
  <p>When I try to update <code>plan</code> by <code>plan.update!(id:"tier-0")</code>, I run into problems, (JSON); how do I account for this to update the <code>plan</code> for my <code>account</code>?</p>