linx-serialization</a>, to decode the JSON string to a Kotlin object.</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">@Serializable<br>class User(<br>    val name: String,<br>    val surname: String,<br>    val age: Int<br>)<br><br>val users: List&lt;User&gt; = query.execute().toObjects { json: String -&gt;<br>    Json.decodeFromString&lt;User&gt;(json)<br>}<br><br>val usersFlow: Flow&lt;List&lt;User&gt;&gt; = query.asObjectsFlow { json: String -&gt;<br>    Json.decodeFrom