Hi,
I’m using Unreal Engine 5.5’s built-in JSON plugin to read a local JSON file. The JSON file contains a structure.
Everything works fine in-editor. The file is read correctly, and the values are displayed on screen. However, after packaging my project, the JSON file always returns the default/empty values of my structure instead of the actual contents.
I’m reading from a file. It’s a file located in the user directory.
With my project, the json file is not included in the packaged build. It’s a seperate file from the project.
In-editor and in the packaged build, the file in question is the exact same file located in the user directory. Only for some reason in the packaged build, it returns default values even tho the success bool says success and even tho the in-editor version reads the local file with no problems.
Double check your filename. Maybe you have an extra space at the end or something that is throwing off the engine. Check if the json is also valid via json lint.
I found out that he reads everything in the json file correctly, except for arrays.
For some reason arrays will always have their default value parsed thru in the packaged build.
I fixed my issue.
My issue was caused by the use of capital letters and/or spaces in my variable names. That caused the ‘get field’ node to stop functioning in the packaged build.