Like compareJson, but if strNestingDepth > 0 then contained strings that are valid JSON will be compared using compareJsonWithNestedJson(str1, str2, strNestingDepth - 1).
Declared in <folly/json/JsonTestUtil.h>
bool
compareJsonWithNestedJson(
StringPiece json1,
StringPiece json2,
unsigned int strNestingDepth);
True if both strings represent the same document.
| Name | Description |
|---|---|
| json1 | The first JSON string. |
| json2 | The second JSON string. |
| strNestingDepth | How many levels of JSON-in-string to compare. |