Skip to content

System.Text.Json doesn't serialize tuples correctly #68264

@TDroogers

Description

@TDroogers

Describe the bug

System.Text.Json serializes tuples as {}

Expected Behavior

Tuples being serialized and deserialized correctly

Steps To Reproduce

Console.WriteLine(JsonSerializer.Serialize(("el0", "el1"))); // output: {}

EDIT (@krwq): simplified repro to just essentials

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Text.Jsonbugin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions