python-rapidjson behaves differently from json and ujson when encoding IntEnums. ``` import enum import json import ujson import rapidjson class SomeInt(enum.IntEnum): val = 123 print([json.dumps(SomeInt.val), ujson.dumps(SomeInt.val), rapidjson.dumps(SomeInt.val)]) ``` This code produces: `['123', '123', 'SomeInt.val']`
Activity
lelit commentedon Mar 27, 2019
Thanks for the report!
Add failing test for issue #121
Always use int.__str__() to emit (subclasses of) int objects
lelit commentedon May 11, 2019
Solved in v0.7.1.