Validation into gatling

.check(jsonPath("$.id").notNull)

I need use assertion like where actual result and expected result should compare
verify the id value into the
.check(jsonPath("$.id").toString.equalsIgnoreCase(“test”)
but this is not working .

could you please tell me that is there any assertion method for this