title: How to treat jsonb field values as first-class attributes in serialization?
body: <p>I have a Rails backend using postgresql jsonb field. I would like to use the gem <code>fast_jsonapi</code> but am not married to it. </p>
  
  <p>I have a jsonb field that is pretty much the model I want to serialize. However, I haven't figured out how to make json attributes of them (serialize them as first class citizens.) So, instead of:</p>
  
  <pre><code>{  
     "attributes":{  
        "data":{  
           "title":"ok",
           "author":"masta p"
        },
        "created_at":"2019-02-16T17:40:21.477Z",
        "updated_at":"2019-02-16T17:40:21.477Z"
     }
  }
  </code></pre>
  
  <p>I don't need the extra 'data' namespace and would like it to be: </p>
  
  <pre><code>{  
     "attributes":{  
        "title":"ok",
        "author":"masta p"
        "created_at":"2019-02-16T17:40:21.477Z",
        "updated_at":"2019-02-16T17:40:21.477Z"
     }
  }
  </code></pre>
  
  <p>What's a low cost way of doing this? </p>