# UnexpectedEndOfInputException Class

> Is thrown when calling the method MailMerge.MergeJsonData with an incomplete JSON string.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 24.0
- **Namespace:** `TXTextControl.DocumentServer.Json`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Inherits:** `System.Exception` › `TXTextControl.DocumentServer.Json.ParserException`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.Json > UnexpectedEndOfInputException Class
- **437 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-json/unexpectedendofinputexception/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-json/unexpectedendofinputexception/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-json/unexpectedendofinputexception/llms-full.txt

---

### Description

Is thrown when calling the method [MailMerge.MergeJsonData](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver/mailmerge/mergejsondata-method/llms-full.txt) with an incomplete JSON string.

### Syntax

```csharp
public class UnexpectedEndOfInputException : ParserException
```

```vbnet
Public Class UnexpectedEndOfInputException
    Inherits ParserException
```

### Examples

The following example creates an Unexpected End Of Input Exception instance and configures its help link setting for a document workflow.

```csharp
TXTextControl.DocumentServer.Json.UnexpectedEndOfInputException unexpectedEndOfInputException = new(10);
unexpectedEndOfInputException.HelpLink = "Quarterly report";
```

```vbnet
Dim unexpectedEndOfInputException As New TXTextControl.DocumentServer.Json.UnexpectedEndOfInputException(10)
unexpectedEndOfInputException.HelpLink = "Quarterly report"
```

---

## Nearby

- **Previous:** [ParserException Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-json/parserexception/llms-full.txt)
- **Next:** [UnexpectedTokenException Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-json/unexpectedtokenexception/llms-full.txt)
