Replaces in-script json encoder/decoder with the native 510 procs

This commit is contained in:
Tastyfish
2016-04-30 19:15:07 -04:00
parent 5a7361f385
commit 646fb39f2d
12 changed files with 12 additions and 309 deletions
+2 -2
View File
@@ -206,11 +206,11 @@
var/list/json[0]
for(var/datum/automation/A in automations)
json += list(A.Export())
return list2json(json)
return json_encode(json)
proc/ReadCode(var/jsonStr)
automations.Cut()
var/list/json=json2list(jsonStr)
var/list/json = json_decode(jsonStr)
if(json.len>0)
for(var/list/cData in json)
if(isnull(cData) || !("type" in cData))