Move some dialogs specific to JSON to the module.