getName

fun JsonObject.getName(parent: Resource?): String

Looks for a name attribute, and throws an exception when now found.

Parameters

parent

only used as part of the error message