Fixed that JsonObject.getShort() returned int instead of short.