RealDocs

UDataTableFunctionLibrary::ExportDataTableToJSONFile

function Engine Blueprint Since unknown
#include "Kismet/DataTableFunctionLibrary.h"
Access: public Specifiers: staticBlueprintCallable

Description

Writes the contents of a Data Table to a JSON file on disk, encoded as UTF-8. Editor-only — used for editor tooling and data export pipelines.

Caveats & Gotchas

  • Only compiles with WITH_EDITOR — not available in packaged builds.
  • Overwrites JSONFilePath unconditionally if it already exists; there is no confirmation or backup.
  • The output file path must be writable from the editor process — paths inside a Perforce/Git-controlled Content folder may need to be checked out first if source control enforces read-only files.

Signature

static bool ExportDataTableToJSONFile(const UDataTable* DataTable, const FString& JSONFilePath);

Parameters

Name Type Description Default
DataTable const UDataTable* The table to export.
JSONFilePath const FString& File-system path of the JSON file to write.

Return Type

bool

Example

Export a table for use outside the engine C++
bool bOk = UDataTableFunctionLibrary::ExportDataTableToJSONFile(MyDataTable, TEXT("C:/Data/Items_Export.json"));
if (!bOk)
{
    UE_LOG(LogTemp, Error, TEXT("Failed to export MyDataTable to JSON"));
}

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.