It would be nice to have a methods to create ActiveRecord queries to let you:
- order by an attr_json json attribute -- including a deeply nested one?
- create queries for on attr_jsons, including nested ones, with arbitrary operators (like
= or != or <=), with type-casting
- compare again to similar features in jsonb_accessor... but again we need to support nested attributes, and automatic type-casting with known types
I had originally maybe wanted to get this in before attr_json 2, but I ran out of time... and realized when it is added it will not add any backwards incompat, so no need to work on it at a major version boundary.