# File lib/paper_trail/serializers/json.rb, line 37
      def where_object_changes_condition(arel_field, field, value)
        # Convert to JSON to handle strings and nulls correctly.
        json_value = value.to_json

        # Need to check first (before) and secondary (after) fields
        arel_field.matches("%\"#{field}\":[#{json_value},%").
          or(arel_field.matches("%\"#{field}\":[%,#{json_value}]%"))
      end