atl/sm/json
import "atl/sm/json"JSON (sm.json).
Functions
Section titled "Functions"func Parse(text string) atl.ValueParses a JSON string.
func Stringify(v atl.Value, pretty bool) stringConverts a value to JSON.
func Open(path string) atl.ValueReads a JSON file. Paths use the usual prefixes: "$CONTENT_DATA/...".
func Exists(path string) boolTrue if the file exists.
func Save(root atl.Value, path string)Writes root (a table) as JSON. Only paths the game lets mods write, e.g. "$CONTENT_DATA/...".