Skip to content

[System.Text.Json]: Recursive property in collection type results in stackoverflow #29413

@pranavkm

Description

@pranavkm
static void Main(string[] args)
{
    var node = new Node();
    Console.WriteLine(JsonSerializer.ToString(node));
}

class Node
{
    public List<Node> Children { get; set; }
}

Environment: Microsoft.NETCore.App 3.0.0-preview6-27629-07

Metadata

Metadata

Assignees

Labels

area-System.Text.JsonblockingMarks issues that we want to fast track in order to unblock other important workbug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions