UDataTable::GetTableAsJSON WITH_EDITOR

I making simple function that saves DataTable to JSON file in project directory and it works on editor but when i try to build is ending up with error
Its because this function UDataTable::GetTableAsJSON marked with WITH_EDITOR preprocessor directive . My question is how can i make this think to work in buid project ?