I know that if I have some integer 'a' and 'b' that I can append them to a Value in Json:
Value root;
Value v = root["int"];
int a = 1;
int b = 2;
v.append(a);
v.append(b);
Resulting Json file:
"int":
[
1,
2
]
But is there also a way to append entire arrays? Perhaps something like this:
Value root;
Value v = root["arrays"];
int a[3] = {1,2,3};
int b[3] = {4,5,6};
v.append(a);
v.append(b);
I'm trying to have my resulting Json file look like:
"arrays":
[
[1, 2, 3],
[4, 5, 6]
]
But instead, Json only appends the pointer address value, which reads as "true":
"arrays":
[
true,
true
]