Yes, but what format of the JSON should be, how it would integrate runnable examples, at what stage you think is appropriate to resolve links to other pages (iirc nim doc supports this now, but I'm not sure), how to organize the resulting JSON so extra tools can work with this without having to import the compiler.
Those are questions that come in immediately and points 1,2, 4, 5 (collect the data, execute runnable examples, parse rst, write IR for other tools) would still be necessary. Point 3 can be dropped if name resolution is not needed, although fully qualified name can be used as an id.