Seems like [nim currently doesn't support JSON for tuples]([https://github.com/nim-lang/Nim/issues/12290](https://github.com/nim-lang/Nim/issues/12290))
Is there any workaround, maybe convert tuple to map or object and then convert it to json or something like that? import json echo %(a: 1, b: 2) Run