api / tv.twelvetone.json / JsonObject / Member / equals

equals

fun equals(other: Any?): Boolean

Indicates whether a given object is "equal to" this JsonObject. An object is considered equal if it is also a JsonObject and both objects contain the same members inthe same order.

If two JsonObjects are equal, they will also produce the same JSON output.

Parameters
object the object to be compared with this JsonObject

Return
true if the specified object is equal to this JsonObject, false otherwise