Assert that json contains string

I do a


but it turns out that the ‘subject’ is not ‘foo’, it is ‘blabla foo blabla’.

Is there a way to check if the ‘subject’ contains ‘foo’ instead of doing is(“foo”)?

Using Gatling 2.1.7

Appreciate any answer on this!

Best regards,

this seemed to do the trick

.check(jsonPath("$..Content.Headers.Subject").transform(string => string contains "foo").is(true))