This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
Unable to increment value in list of object. #222
Unanswered
harshitsinghai77
asked this question in
Help
Replies: 1 comment 9 replies
-
Note: Python a dict can contain custom types / objets to any key but JSON can't as it relies on generic data types. Unlike JSON python keys can be integers too. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey,
I have a use case where I need to increment id such as
My code
But I'm getting an error saying:
TypeError: Object of type Increment is not JSON serializable
Which makes sense.
On print I get this
What am I doing wrong here?
Beta Was this translation helpful? Give feedback.
All reactions