Output in console should be like: {"key":"value"}
Forum
CS2D Scripts Echo JSON stringEcho JSON string
3 replies 1
Output in console should be like: {"key":"value"}
Does the print or io.write of lua can output to cs2d_dedicated console?
The usage is something like this
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
local JSON = require("JSON") local data = { 	hello = "World", 	another = "World", 	MikuAuahDark = "Test" } print(JSON:encode(data))
You'll get output similar (the key-value is not ordered) like this
1
{"hello":"World","another":"World","MikuAuahDark":"Test"}
print and io.write can write to cs2d_dedicated console yes.
1