me="idea">val number: NonZeroInt = 123.toNonZeroInt()<br>    .getOrThrow()<br>val encoded: String = Json.encodeToString(number)<br>assertEquals(expected = "123", actual = encoded)<br>val decoded: NonZeroInt = Json.decodeFromString(encoded)<br>assertEquals(expected = number, actual = decoded)</code></pre><span class="top-right-position"><span class="copy-icon"></span><div class="copy-popup-wrapper popup-to-left"><span class="copy-popup-icon"></span><span>Content copied to clipboard</span></div></span></div><