Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround bug in android 4 for JSON objects with List<String> #942

Merged
merged 14 commits into from
May 19, 2023
Prev Previous commit
Next Next commit
fix bad rename
  • Loading branch information
aboedo committed Apr 12, 2023
commit 4a58388f7b586d92c79dc1a21580d4c4459fe8a5
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class MapConverterTest {
} returns JSONObject(mapOf("product_ids" to incorrectJsonArrayString))

val resultJson = mapConverterMock.convertToJSON(mapContainingInputMap)
val resultArrayString = resultJson.optJSONObject("root")?.optJSONArray("nested")
val resultArrayString = resultJson.optJSONObject("subscriber_info")?.optJSONArray("product_ids")

assertEquals(correctedJSONArray, resultArrayString)
}
Expand Down