LitJson.JsonData defined multiple times
Posted: 03 Feb 2010, 01:14
I copied the Json data response code from the documentation
and added using LitJson; to the script, but I get an error saying that it is defined multiple times. I checked and it's nowhere else in the script. If I take the using line out, the compiler error changes to "The type or namespace name `JsonData' could not be found. Are you missing a using directive or an assembly reference?" so I believe I don't define it more than once.
Does anyone know why the compiler complains about it being defined multiple times?
thanks
Code: Select all
// Handle JSON responses
else if (type == SmartFoxClient.XTMSG_TYPE_JSON)
{
JsonData responseData = (JsonData)data;
// TODO: check command and perform required actions
}
and added using LitJson; to the script, but I get an error saying that it is defined multiple times. I checked and it's nowhere else in the script. If I take the using line out, the compiler error changes to "The type or namespace name `JsonData' could not be found. Are you missing a using directive or an assembly reference?" so I believe I don't define it more than once.
Does anyone know why the compiler complains about it being defined multiple times?
thanks