ialization</a>:</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">val encoded: String = Json.encodeToString(ZeroInt)<br>assertEquals(expected = "0", actual = encoded)<br>val decoded: ZeroInt = Json.decodeFromString(encoded)<br>assertSame(expected = ZeroInt, 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></di