Undecleared identifier FJsonObjectConverter

I want to write my own function library so that I could use json via Blueprint.
I want to store the game data in the json file then use JsonObjectStringToUStruct to convert to a struct which I created in my blueprint.

But I can’t figure out what I am doing wrong




Thank :slight_smile:

If you open the [FJsonObjectConverter][1] documentation page and scroll to the bottom, you’ll see what Module it requires and which Header file to include, like so:


Then you need to open your YourGameName.Build.cs file and add the dependency module to the list. Something like this:

PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "JsonUtilities" });

Finally, you should include the Header in the files where you need the functionality. The directive should be placed near the other includes, at the top of the file:

#include "JsonObjectConverter.h"
1 Like

Thank you very much! I will try it!

Well thanks, I have been overlooking this part of the documents for a while. I was just wondering “How do I easily tell which module X is in?”
You saved me minutes of time.