# JSON to UStruct: Array of float-Arrays

**URL:** <https://forums.unrealengine.com/t/json-to-ustruct-array-of-float-arrays/468138>\
**Category:** Editor Scripting\
**Tags:** ustruct, unreal-engine, Array, json, question, CPP\
**Created:** [July 14, 2020, 8:42am UTC](https://forums.unrealengine.com/t/json-to-ustruct-array-of-float-arrays/468138 "2020-07-14T08:42:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorenzb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lorenzb](https://forums.unrealengine.com/u/lorenzb)\
**Post date:** [July 14, 2020, 8:42am UTC](https://forums.unrealengine.com/t/json-to-ustruct-array-of-float-arrays/468138/1 "2020-07-14T08:42:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lorenzb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lorenzb](https://forums.unrealengine.com/u/lorenzb)\
**Post date:** [September 21, 2020, 5:04pm UTC](https://forums.unrealengine.com/t/json-to-ustruct-array-of-float-arrays/468138/2 "2020-09-21T17:04:52Z")

</div>

I guess anonymous arrays (and any anonymous object in general) are not allowed in FJsonObjectConverter. I fixed my JSON Format instead by providing any array with a key.
