SalomonBrys / Kotson

Kotlin bindings for JSON manipulation via Gson
MIT License
709 stars 37 forks source link

update to 1.0.0-beta #7

Closed dsvoronin closed 8 years ago

dsvoronin commented 8 years ago

overloaded operator JsonElement.get not working!!

operator public fun JsonElement.get(key: String): JsonElement = obj.get(key) ?: throw NoSuchElementException()

obj is JsonObject that extends JsonElement obj["nothing”] //calls java method and not an overloaded operator. It worked fine with M14.

is there any way to override operator with same signature?