how to compare the saved json responses in gatling?

I retrieved json keys from http response body and saving in session using saveAs() for 2 different APIs. How can we compare these saved responses using .checks () or any other preferred way? I have posted the question here :

Any help is greatly appreciated.

Note: these saved jsonPath value’s are in array format, so basically I want to compare if both arrays are same.