array help v2

Get help using Construct 2

Post » Wed Oct 05, 2016 6:53 pm

im trying to use data editor

i use only one column Y (list with names)

when i done i click the button convert to JSon..i copy paste to Arrayload but this show me a" Syntax Error"

"{"c2array":true," Expression appears to end before here - are you missing something before it?

Json:

{"c2array":true,"firstRowIsColumnNames":true,"size":[11,1,1],"data":[[["Color"]],[["aqua"]],[["blue"]],[["red"]],[["orange"]],[["yellow"]],[["white"]],[["purple"]],[["green"]],[["bronze"]],[["gold"]]]}
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Wed Oct 05, 2016 8:20 pm

I think you need more quotation marks.

"{""c2array"":true,""firstRowIsColumnNames"":true,""size"":[11,1,1],""data"":[[[""Color""]],[[""aqua""]],[[""blue""]],[[""red""]],[[""orange""]],[[""yellow""]],[[""white""]],[[""purple""]],[[""green""]],[[""bronze""]],[[""gold""]]]}"
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Wed Oct 05, 2016 8:25 pm

@Asmodean yes ok is true.. and how you put all this quotation mark? i have 200+ name list dont tell me i need to tape all double ""....."" ?
B
17
S
7
G
7
Posts: 205
Reputation: 5,335

Post » Wed Oct 05, 2016 8:36 pm

Use ArrayConverter.
Put your JSON-String in the TextBox and click Load JSON.

array-contents-editor-2d-3d-beta_t120926








Edit: Sorry I wrote first ExcelToJSON
B
24
S
3
G
1
Posts: 451
Reputation: 2,165

Post » Thu Oct 06, 2016 1:36 am

just use text editor..
Image
Image

Find " Replace "" Replace All

Image
Image

OR

replace in C2

Image
B
66
S
24
G
7
Posts: 1,514
Reputation: 11,039

Post » Sun Dec 11, 2016 11:31 pm

@Asmodean do you know the creator of ExcelToJSON? I searched everywhere but I can't find ExcelToJSON. It's creating an additional size on the y dimension, so single row will generate a 2d array
B
81
S
21
G
23
Posts: 515
Reputation: 18,702

Post » Tue Dec 13, 2016 9:21 am

@Cipriux

In his google-drive URL:
https://drive.google.com/drive/folders/ ... HNUUVlIN2M

The last two.
B
24
S
3
G
1
Posts: 451
Reputation: 2,165


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 29 guests