RefArgs is not JSON serializeable

I have an on-run-end in my dbt_project that is working in dbt 1.0 but when I switched to dbt 1.5, the job is failing with Object type of RefArgs is not JSON serializeable error. Is there any doc regarding this change? (If any).

Could you please share the code you are using here