Use the add_workspace_to_persistent_json in utils.