Skip to content
Discussion options

You must be logged in to vote

This might be what you were looking for:

json.dumps({"r": list(range(0,16,5))})

-> '{"r": [0, 5, 10, 15]}'

I agree it would be better if micropython raised a TypeError (like cpython does).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@peterhinch
Comment options

Answer selected by peterhinch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants