usage: require("json")
this is a local implementation of json SComputers.
in some cases, it may behave better than the standard sm.json implementation.
methods:
- json.encode(table):string - an analogue of sm.json.writeJsonString. accepts a table, encodes it in json and returns a string
- json.decode(string):table - an analogue of sm.json.parseJsonString. accepts a string, decodes it as json, and returns a table
- json.nativeEncode(table):string - alias to sm.json.writeJsonString. accepts a table, encodes it in json and returns a string
- json.nativeDecode(string):table - alias to sm.json.parseJsonString. accepts a string, decodes it as json, and returns a table