Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oskardudycz/system.text.json.fail
https://github.com/oskardudycz/system.text.json.fail
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/oskardudycz/system.text.json.fail
- Owner: oskardudycz
- Created: 2019-05-12T12:12:56.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-12T12:57:36.000Z (over 5 years ago)
- Last Synced: 2024-10-19T21:11:31.711Z (24 days ago)
- Language: C#
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)