mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
You get to cache data, make the best of it. NanoUI for PDA now won't shove the manifest through list2json every tick, it will cache the json for manifest and shove it into the cache_data so list2json tacks it onto the end.
13 lines
263 B
Plaintext
13 lines
263 B
Plaintext
/*
|
|
n_Json v11.3.21
|
|
*/
|
|
|
|
proc
|
|
json2list(json)
|
|
var/static/json_reader/_jsonr = new()
|
|
return _jsonr.ReadObject(_jsonr.ScanJson(json))
|
|
|
|
list2json(list/L, var/cached_data = null)
|
|
var/static/json_writer/_jsonw = new()
|
|
return _jsonw.WriteObject(L, cached_data)
|