Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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