<pre class="methodSignature">int&nbsp;getInt()</pre>
<div class="block">Returns a JSON number as an integer. The returned value is equal
 to <code>new BigDecimal(getString()).intValue()</code>. Note that
 this conversion can lose information about the overall magnitude
 and precision of the number value as well as return a result with
 the opposite sign. This method should only be called when the parser
 state is <a href="JsonParser.Event.html#VALUE_NUMBER"><code>JsonParser.Event.VALUE_NUMBER</code></a>.</d