[Well if you look at the source code](https://github.com/nim-lang/Nim/blob/devel/lib/pure/json.nim#L1140-L1175), you will see that the comparisons are done with the type names like "string", "bool", "float" etc.
So this is not supported. I think this would be a bug, so please create an issue on github.