@ Deprecated public JsonFluentAssert hasSameStructureAs ( Object expected ) { Diff diff = createDiff ( expected , configuration . withOptions ( COMPARING_ONLY_STRUCTURE ) ) ; diff . failIfDifferent ( ) ; return this ; }
Compares JSON structure . Ignores values only compares shape of the document and key names . Is too lenient ignores types prefer IGNORING_VALUES option instead .