Skip to content

Why does to List() converts JSONObjects to Maps? #1012

Closed

Description

@aghasemi

It's obviously deliberate and the desired behaviour, and the reason is very likely somewhere documented, but unfortunately I could not find it. So may I ask what is the logic or use cases for this behaviour?

And will you consider a new method to return a list of objects without converting JSONObjects to Maps etc?

Thanks
Best

Activity

  1. stleary commented on Sep 20, 2025

    @stleary
    Owner

    @aghasemi There is already a discussion about JSONArray.toList() here: #737
    I added your comment. This will be fixed soon. The old toList() will be deprecated, and a new method added that has the desired behavior.
    Closing this issue, but post here if you think it should be reopened for any reason.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions