folly::compareDynamicWithNestedJson

Like compareJson, but with dynamic instances.

Synopsis

Declared in <folly/json/JsonTestUtil.h>

bool
compareDynamicWithNestedJson(
    dynamic const& obj1,
    dynamic const& obj2,
    unsigned int strNestingDepth);

Return Value

True if both dynamics represent the same document.

Parameters

NameDescription
obj1The first dynamic.
obj2The second dynamic.
strNestingDepthHow many levels of JSON-in-string to compare.