Not sure if this is a bug or intended. I have a DataTable setup called ShipTable:
My problem comes in with the file type of data. I want to use JSON but it seems to have a small issue in the field names. If I create a CSV like this:
Name,ShipName,ShipWeaponTechLevel,ShipEngineTechLevel,ShipShieldTechLevel,ShipGeneratorTechLevel,ShipSensorsTechLevel,WeaponMounts,CargoSpace,ShipModel,ShieldScale
0,"Starter",1,1,1,1,1,1,10,"StaticMesh'/Game/Flying/Meshes/UFO.UFO'","(X=3.700000, Y=2.400000, Z=2.200000)"
It works just fine on the import. If I use a JSON:
[
{
"Name": "0",
"ShipName": "Starter",
"ShipWeaponTechLevel": 1,
"ShipShieldTechLevel": 1,
"ShipEngineTechLevel": 1,
"ShipGeneratorTechLevel": 1,
"ShipSensorsTechLevel": 1,
"WeaponMounts": 1,
"CargoSpace": 10,
"ShipModel": "StaticMesh'/Game/Flying/Meshes/UFO.UFO'",
"ShieldScale": "(X=3.700000,Y=2.400000,Z=2.200000)"
}
]
I get an error on importing:
Now if I export the original CSV to JSON it comes back with the fields (ie. ShipName, ShipWeaponTechLevel, etc.) with a series of numbers/letters after it (assuming a serialization of sorts). So my problem comes up that my fields in JSON need these extra characters, I have written a separate C# program to help me maintain my database (this happens on any datatable using JSON) and it outputs normal field names. I’d have to go in and add these serials to each field of each row.
Is this intended behavior, should I just stick with CSV (I prefer the neat format of JSON).