UFUNCTION macro causes compile errors

Hey! Still new here. I’ve seen other questions with similar problems but they don’t’ seem to fix my issue.

In my header file, this works

	UFUNCTION(BlueprintCallable, Category = "VR PlayFab Actor")
	void OnPlayFabError(FString Result);

this also works

	void OnPlayFabError(FJsonObject Result);

This doesn’t work…

	UFUNCTION(BlueprintCallable, Category = "VR PlayFab Actor")
	void OnPlayFabError(FJsonObject Result);

I get the error:
" Error: Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘FJsonObject’"

I don’t understand why the UFUNCTION would cause it to not be able to find a class. Any ideas? THanks

FJsonObject is not supported in Blueprints, so you can’t use it in a UFUNCTION

Interesting. What makes it not compatible with blueprints?

image

It’s missing a USTRUCT macro, so it’s not made public to Unreal Engine’s reflection system.