I’m receiving json data such as:
{
"key1" : "value1",
"key2" : [
[1.5, 2.0, 4.15],
[3.4, 1.2, 5.18],
]
}
I’m trying to parse this to UStruct like:
USTRUCT()
struct FJsonData{
GENERATED_BODY()
UPROPERTY()
FString key1;
UPROPERTY()
TArray<double> key2;
};
/* ... */
FJsonObjectConverter::JsonObjectStringToUStruct(...)
I also tried
TArray<TArray<double>> key2,
which is not allowed (no nested containers), also
TArray<FVector> key2
, which did not work as well.
Are anonymous arrays per se not supported?
I could parse by hand, but the serialization/deserialization via UStruct seems cleaner to me.