conda search --json --use-index-cache -c defaults --override-channels python is not json serializable

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

conda search --json --use-index-cache -c defaults --override-channels python, possibly in that specific order, is not JSON serializable.

This is caused by the channels list being an IndexedSet instead of e.g. list.

TypeError: Object of type IndexedSet is not JSON serializable

Conda Info

conda 25.9.0