As a follow up after playing around with some C2 JSON creation strings and array importer. I would mandatorally suggest making the conversation tools with C2.
C2 has it's requirements as to what the JSON looked like. I tried implementing the above dialog structure for quick test and it didn't work so easily. Unfortunatly it seems C2 can't just do a raw JSON import :(
Here is what you need to consider if you do it by hand.
The over structure must be encapsulated by
{""C2Array": true, ""size"" : [x,y,z], ""data"": { your stuff } }
All objects names must be in "" "" two set's of qoutes each
You can't alternate with " ' ', ' ' " C2 doesn't interpret ' :(
the C2 wrapper of the object require the above
it's actually a massive pain.
So you really are better writing some kind of tool that will fill the array in the tool. Then you can export the array as a JSON string. Then that should work :
unfortunally for all the webstandards that C2 dos use. the JSON seems to not be one of them.