Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set() not serializable after upgrade to 2.0.0 #377

Closed
Lendemor opened this issue Mar 12, 2020 · 1 comment
Closed

set() not serializable after upgrade to 2.0.0 #377

Lendemor opened this issue Mar 12, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@Lendemor
Copy link

Lendemor commented Mar 12, 2020

An error occur when serializing set() with ujson > 2.0.0

Exemple :

Expected :

In [4]: ujson.dumps(set([1,2]))                                                               
Out[4]: '[1,2]'

Obtained :

In [31]: ujson.dumps(set([1,2]))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-31-38b9a6ab1088> in <module>
----> 1 ujson.dumps(set([1,2]))

TypeError: ��
�� is not JSON serializable

Test realized with python3.7

@hugovk
Copy link
Member

hugovk commented Mar 12, 2020

Thanks for the report. This is intentional, please see #374. (I'll pin that too.)

@hugovk hugovk added the duplicate This issue or pull request already exists label Mar 12, 2020
@hugovk hugovk closed this as completed Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants