I'm experimenting using SQLite with some json APIs. Since there's no out-of-the-box support for json columns, I'm storing loosely-structured data as json in a Text column using the serialization plugin:
plugin :serialization serialize_attributes :json. :transaction_data, :other_attributes This works fine for model instances ( some_instance.transaction_data). But I fequently use .naked when I need a small subset of data from a lot of rows, but the serialization plugin doesn't seem to run when doing this. I tried doing some_dataset.all.map(&:to_hash) but ended up with the same thing - just json string values. I can understand the naked method pulling the data in as-is, but should the `to_hash` method be using the defined serialization? Using Sequel version 5.51.0 Thanks as always for the help! -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to sequel-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/9da5f0b8-ee01-43e5-a3b4-e17ae798dc99n%40googlegroups.com.