Separating out the client request from json assertion to enable it to be used from different clients