<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Structured Outputs on Gabriel Mongeon</title><link>https://gabrielmongeon.ca/en/tags/structured-outputs/</link><description>Recent content in Structured Outputs on Gabriel Mongeon</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 15 Jul 2026 00:00:00 -0400</lastBuildDate><atom:link href="https://gabrielmongeon.ca/en/tags/structured-outputs/index.xml" rel="self" type="application/rss+xml"/><item><title>Structured Outputs with Ollama and .NET</title><link>https://gabrielmongeon.ca/en/2026/07/structured-outputs-ollama-dotnet/</link><pubDate>Wed, 15 Jul 2026 00:00:00 -0400</pubDate><guid>https://gabrielmongeon.ca/en/2026/07/structured-outputs-ollama-dotnet/</guid><description>&lt;blockquote>
&lt;p>Part 6 in the &amp;ldquo;Local AI with Ollama and .NET&amp;rdquo; series: &lt;a href="https://gabrielmongeon.ca/en/2025/12/local-ai-development-ollama-dotnet/">Part 1 – Ollama and .NET&lt;/a> | &lt;a href="https://gabrielmongeon.ca/en/2025/12/local-rag-ollama-litellm-qdrant/">Part 2 – Local RAG&lt;/a> | &lt;a href="https://gabrielmongeon.ca/en/2025/12/ai-agents-ollama-dotnet/">Part 3 – AI Agents&lt;/a> | &lt;a href="https://gabrielmongeon.ca/en/2026/02/mcp-csharp-weather-server/">Part 3.5 – MCP Server&lt;/a> | &lt;a href="https://gabrielmongeon.ca/en/2026/03/microsoft-agent-framework-ollama-mcp/">Part 4 – Microsoft Agent Framework&lt;/a> | &lt;a href="https://gabrielmongeon.ca/en/2026/06/orchestrate-blazor-ollama-with-aspire/">Part 5 – Aspire&lt;/a> | &lt;a href="https://gabrielmongeon.ca/2026/07/sorties-structurees-ollama-dotnet/">Version française&lt;/a>&lt;/p>&lt;/blockquote>
&lt;p>Asking a local model to reply in JSON directly in the prompt works most of the time. The problem is the rest of the time: the parsing blows up, and rarely at a good moment. Here&amp;rsquo;s a simple trick to get reliable JSON with Ollama and .NET.&lt;/p></description></item></channel></rss>