'Java JsonUnit how to get actual value from JsonAssert?

Is there any chance to get actual value from JsonUnit JsonAssert?

For example I need something like that

var JsonNode = assertThatJson(json).node("a[0].b[0].key")
.isPresent().getActual();
    
public class JsonAssert extends AbstractAssert<JsonAssert, Object> contains
protected final ACTUAL actual;

which is actually jackson JsonNode and I see there value I need in debug

But how can I get this value ? There is no any getters like .getActual()

For example in rest-assured you can always do

then().
        statusCode(200).
//other asserts
extract().
        path("user_id");

I.e. extract value after assertions.

P.S.

I chose feign + Assertj + JsonUnit for my API tests



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source