omni::structuredlog::compareJsonTrees

Defined in omni/structuredlog/JsonTree.h

static bool omni::structuredlog::compareJsonTrees(const JsonNode *a, const JsonNode *b, JsonTreeCompareFuzz fuzz = JsonTreeCompareFuzz::eStrict)

Perform a deep comparison of two nodes.

Note

This assumes a properly formed JsonNode. An incorrectly set len member will likely result in a crash.

Parameters
  • a[in] The first node to compare.

  • b[in] The second node to compare.

  • fuzz[in] How strict this comparison will be.

Returns

true of the objects are equal.

Returns

false if the objects differ in any ways.