[11.x] Allow using castAsJson()
on non default db connection during test
#53256
+12
−9
castAsJson()
on non default db connection during test
#53256