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.
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:
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:
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.