util.TableToJSON
Example
Writes the positions and angles of every player to a JSON file called playerstuff.json.
Converts a table to a JSON string.
See util.JSONToTable for the opposite function.
{["5"] = "ok", [5] = "BBB"}
)
All integers will be output as decimals (5 -> 5.0), since all numbers in Lua are internally floating point values.
Writes the positions and angles of every player to a JSON file called playerstuff.json.