> ...
> And you need to fix your json file. You are missing quotation marks between your fruit names.
> It will work once you fix those two things.
>
> ...
>
I already told you why it's not working. You can't expect people to just fix your issues for you. You need to learn why there's an issue and be able to correct it.
Find your json file inside your project open it in notepad and add the missing quotation marks.
Yes, I already did that - You'll notice that my json file is included at the top of my last post. I can expect people on a community forum to help and sometimes just look at the 'code' and fix it so I can see what's wrong at my end. Those that don't want to do that can opt to NOT reply. Perhaps you fall into the latter group?
I have also minified the FruitNames.json file contents to be extra sure!
{"c2array":true,"size":[10,1,1],"data":[[["Apple"]],[["Banana"]],[["Cherry"]],[["Pepper"]],[["Grapes"]],[["Pumpkin"]],[["Star Fruit"]],[["Strawberry"]],[["Tomato"]],[["Peach"]]]}[/code:drdmpi7m]
So, as it stands, I have done everything that I think I should have done, but the fruitnames still do not appear - the array is empty.
[EDIT] Problem solved - and it was simply a case of re-importing my FruitNames.json file into the project. I assumed (wrongly) that the file was retrieved at runtime from disk.
[EDIT] I have also noticed that beautfied json does not work in C2.