refactored code for TestCompareNodeJson

No match.