Skip to content
Advertisement

Tag: jsonassert

Ignore specific node within array when comparing two JSON in Java

I want to compare two JSON strings in Java 8 for equality, but ignore specific known nodes which contain values which are expected to be different and are a tolerated difference e.g. timestamp. Currently using JSONAssert v1.5.0 from org.SkyScreamer, I’m able to ‘ignore’ a number of these nodes, but cannot ‘ignore’ nodes within an array. What I would like is

Advertisement