RealDocs

UDataTableFunctionLibrary::ExportDataTableToJSONString

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

Description

Serializes the contents of a Data Table to a JSON-formatted string in memory. Editor-only — useful for editor tooling that needs the data without writing to disk.

Caveats & Gotchas

  • Only compiles with WITH_EDITOR — not available in packaged builds.
  • The JSON shape mirrors the row struct's UPROPERTY layout, so custom PostSerialize logic or non-UPROPERTY fields on the row struct are not reflected in the export.
  • For large tables, prefer ExportDataTableToJSONFile to avoid holding the entire serialized export in a single FString.

Signature

static bool ExportDataTableToJSONString(const UDataTable* DataTable, FString& OutJSONString);

Parameters

Name Type Description Default
DataTable const UDataTable* The table to export.
OutJSONString FString& Receives the JSON-formatted contents of the table.

Return Type

bool

Example

Get JSON text for a build pipeline step C++
FString JSONOut;
if (UDataTableFunctionLibrary::ExportDataTableToJSONString(MyDataTable, JSONOut))
{
    UE_LOG(LogTemp, Log, TEXT("%s"), *JSONOut);
}

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.