<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Json on Tokenise</title><link>https://tokenise.rosvetic.com/tags/json/</link><description>Recent content in Json on Tokenise</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Thu, 12 Nov 2026 16:03:00 +0000</lastBuildDate><atom:link href="https://tokenise.rosvetic.com/tags/json/index.xml" rel="self" type="application/rss+xml"/><item><title>Your agent's new C# union deserialises half a payload as a valid case: pin it with a JSON corpus</title><link>https://tokenise.rosvetic.com/posts/csharp-15-union-json-ambiguous-cases-agent-dtos/</link><pubDate>Thu, 12 Nov 2026 16:03:00 +0000</pubDate><guid>https://tokenise.rosvetic.com/posts/csharp-15-union-json-ambiguous-cases-agent-dtos/</guid><description>&lt;p&gt;An agent adds a &lt;code&gt;union PaymentMethod(Card, BankTransfer)&lt;/code&gt; to your API, wires it into a minimal API endpoint, and the happy-path tests pass. A client then posts &lt;code&gt;{&amp;quot;brand&amp;quot;:&amp;quot;visa&amp;quot;}&lt;/code&gt;, a card with no number, and the endpoint hands your handler a &lt;code&gt;Card&lt;/code&gt; whose &lt;code&gt;Last4&lt;/code&gt; is null. Nothing threw, and nothing logged. The union did what it was told.&lt;/p&gt;</description></item></channel></rss>