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 :

https://stackoverflow.com/questions/56911085/how-to-compare-responses-from-http-calls-in-gatling

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.