RST->Json has been implemented in the compiler by @haxscramper here <https://github.com/haxscramper/nimskull/commit/df5de0b38f652f271a0767abcc4c9cad49a6d1ec>
There is a large squashed PR with more work but can't review it: <https://github.com/haxscramper/nimskull/commit/9b0687303b3515fa85d556ba278bc14a15fb1185>