I think I would be happier if this inspected the actual query instead of the JSON. Two reasons:

- It would verify that the tenant_id is actually in the correct location in the query.
- This can fail spuriously since the whitespace in the middle is insignificant. (I agree that this is not a super compelling reason :))