jsonPrimitive

Convenience method to get current element as JsonPrimitive

Throws

IllegalArgumentException

if current element is not a JsonPrimitive