title: How to construct ActiveRecords queries for JSONB data
body: <p>I would like to change the <code>json</code> columns in an app to <code>jsonb</code> and I am interested to explore the new query capabilities for jsonb data.</p>
  <p>For example, say a table has a &quot;payload&quot; field in <code>jsonb</code> format, how can I query and render selected data items inside the &quot;payload&quot; hash?</p>
  <p>Can anyone recommend good resources or tutorials where I can start my journey?</p>