Skip to content

[System.Text.Json] Support to configure Enumerable as Object #134298

Description

@CoreDX9

Package X.PagedList has interface IPagedList<T>. IPagedList<T> implement IEnumerable<T>, so object will serialize into an array. But IPagedList<T> have more properties to record paging information. It should be serialize into an object, than use a property to serialize items.

I hope developers can only configure property name of items to make Enumerable as Object, and other properties will configure automatically.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions