View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002947||Multi Theft Auto : San Andreas||Scripting||public||2007-12-26 09:44||2008-12-28 19:36|
|Target Version||1.0||Fixed in Version||1.0|
|Summary||0002947: getElementData should be able to retrieve JSON strings set in .map|
If a .map file contains JSON strings as element data, getElementData should retrieve this automatically.
|Tags||No tags attached.|
Not sure if that's a good idea though, you could get problems if the syntax from a string accidentially became json data.
Same goes for settings. There's no reason why you would use the [ ] syntax, and if its going to be added then it has to be now so people dont have to change later on.
I think the chance of someone using  is small. We could escape the  characters if deemed necessary in non-JSON data.
saveMapData should save JSON values too, but not element references (as they're invalidated on reload)...