Hi,
Im using SimpleJSON from here: http://wiki.unity3d.com/index.php/SimpleJSON
At the examples section, it is shown that I can add a new element to the end of the Array as following:
N["data"]["sampleArray"][-1] = "Test"; // this will add another string to the end of the array
N["data"]["sampleArray"][-1]["name"] = "FooBar"; // this will add another object to the end of the array which contains a string named "name"
However, I get error at the editor such as:
The best overloaded method match for `string.this[int]' has some invalid arguments
Argument `#1' cannot convert `string' expression to type `int'
Am I doing something wrong here?