autogen/dotnet/website/articles/OpenAIChatAgent-use-json-mode.md
The following example shows how to enable JSON mode in @AutoGen.OpenAI.OpenAIChatAgent.  [![](https://img.shields.io/badge/Open%20on%20Github-grey?logo=github)](https://github.com/microsoft/autogen/blob/main/dotnet/sample/AutoGen.OpenAI.Sample/Use_Json_Mode.cs) 