---
title: "Discussion on \"Model Returns Invalid JSON in .NET: Structured Output Fixes\" | Hashnode"
description: "Discussion on \"Model Returns Invalid JSON in .NET: Structured Output Fixes\". Six causes why Microsoft.Extensions.AI returns invalid JSON from structured outputs in .NET, with fixes for each."
url: "https://hashnode.com/posts/structured-output-invalid-json-dotnet-fixes/6a393ab73ddd3d64572c466d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Model Returns Invalid JSON in .NET: Structured Output Fixes](https://codingdroplets.com/structured-output-invalid-json-dotnet-fixes?utm_source=hashnode&utm_medium=feed)

Six causes why Microsoft.Extensions.AI returns invalid JSON from structured outputs in .NET, with fixes for each.

Jun 22 · 10 min read · codingdroplets.com  
Updated Jun 23  
Read the article

-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)
-   [#ai](https://hashnode.com/tag/ai)
-   [#microsoft-extensions-ai](https://hashnode.com/tag/microsoft-extensions-ai)
-   [#structured-outputs](https://hashnode.com/tag/structured-outputs)
-   [#json](https://hashnode.com/tag/json)
-   [#troubleshooting](https://hashnode.com/tag/troubleshooting)

## Written by

[Coding Droplets](https://hashnode.com/@codingdroplets)

@codingdroplets

  
[View profile](https://hashnode.com/@codingdroplets)

Build, Scale & Master .NET with Clean, Practical Tutorials

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
