Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oskardudycz/system.text.json.fail


https://github.com/oskardudycz/system.text.json.fail

Last synced: 14 days ago
JSON representation

Awesome Lists containing this project

README

        

# System.Text.Json.Fail
I planned to investigate the usage of [System.Text.Json](https://docs.microsoft.com/en-us/dotnet/api/system.text.json.serialization) in [Marten](https://github.com/JasperFx/marten).

I used our test class [Target](System.Text.Json.Fail/Target.cs). Simplified case:

```
public class TargetSimplified
{
public TargetSimplified[] Children { get; set; }
}

var document = new TargetSimplified();
var str = JsonSerializer.ToString(document);
```
It's throwing `StackOverflowException`.

It's reproducible by running sample [Program.cs](https://github.com/oskardudycz/System.Text.Json.Fail/blob/master/System.Text.Json.Fail/Program.cs)