android-components / mozilla.components.support.ktx.android.org.json / org.json.JSONObject / mergeWith

mergeWith

fun JSONObject.mergeWith(other: JSONObject): Unit (source)

Merge the contents of another JSONObject with this object, overwriting the colliding keys.

Parameters

other - the JSONObject providing the data to be merged with this one.