How to compare and merge two JSON keys in Android

80 views Asked by At

I have two JSONObjects with the same keys. But something I am getting from the API response is different from the originally expected one. That is Keys are the same but the difference in their case-sensitive. Please help me to merge that response to the originally expected one.

1

There are 1 answers

2
Galbadrakh Purevdorj On

You can use Jackson. It is very easy to use. example: https://www.baeldung.com/jackson-compare-two-json-objects