Page 1 of 1

string array in toText

Posted: 18 Jan 2016, 16:25
by chriss0212
strange thing,

i want to create a json string... for that i am using a toString node. one input should be a string array.... but how can i feed it in? if i use a string node behind the array... i will get a comma seperatted string... so far so good... but: if i have a string array with two values:

1st: hello
2nd hello world

you will get it like this:
hello, "hello world"

so second value gets "" why just the second string and not the first string?

greetz

christian

Re: string array in toText

Posted: 20 Jan 2016, 11:06
by Karol
The "" come from the space!
And they are needed if you have a text like "one, two, three". These are not three strings but one! The commas belong to the string!

Cheers
Karol

Re: string array in toText

Posted: 21 Jan 2016, 11:57
by chriss0212
hi karol,

ok...got it.... but why dont you use always double qutes? this would make parsing easier and i could feed it directly into a json string array ;)

greetz

christian