Update `exportAsJSON` module and include in documentation