1.
Код: Выделить всё
{
"id": 1,
"age": 22,
"name": "your name"
}
Код: Выделить всё
[
{
"id": 1,
"age": 22,
"name": "your name"
},
{
"id": 2,
"age": 32,
"name": "Your name"
}
]
Код: Выделить всё
JSONAssert.assertEquals(expectedData, responseData,
new CustomComparator(JSONCompareMode.LENIENT,
new Customization("[*]", new JsonValueMatcher()),
new Customization("{*}", new JsonValueMatcher()),
new Customization("*", new JsonValueMatcher()),
new Customization("*.", new JsonValueMatcher()),
new Customization("*.*", new JsonValueMatcher()),
new Customization("*.", new JsonValueMatcher())
));
Под [*] настройками я уже пробовал.
Подробнее здесь: https://stackoverflow.com/questions/788 ... mer-jsonas