https://kotlinlang.org logo
#android
Title
# android
m

Mickael

03/09/2020, 2:48 PM
Copy code
//Compare 2 json files
val parser = JsonParser()
val o1 = parser.parse("{\"state\":1,\"cmd\":1}")
val o2 = parser.parse("{\"state\":1,\"cmd\":1}")

println(o1 == o2)
This seems to be enough ;-)
l

Luoqiaoyou

03/10/2020, 5:01 AM
maybe kotlinx.serialization
3 Views