https://kotlinlang.org logo
#ktor
Title
# ktor
a

Ayomide

03/15/2021, 6:53 PM
Is there a recommend method to unit test JSON in Kotlin? Like, asserting if one json string is equal to the other
c

christophsturm

03/15/2021, 7:07 PM
years ago i used https://github.com/skyscreamer/JSONassert but I’m not a huge fan.
nowadays I think that its probably better to parse the json to data classes and assert on that.
a

Ayomide

03/15/2021, 7:13 PM
Ah. Might just use JSONassert because I don't have dataclasses for what I'm checking. Thanks
244 Views