I am aware I can easily query a JSON value using this example query:
r = Books.query.filter(
Books.nameofjsonfield['key1', 'key2'].astext.cast(Unicode) == 'exact_string_to_compare'
).all()
But how do I search for datasets matching a substring of the JSON value?