ConnectWise Interview Question

"how do you use json in automation?" how can you pass a function as argument to another function difference between playwright and selenium