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. Keep in mind that not every data type can be stored in the JSON format, notably any entity will not be written, as if it wasn't in the table. Same goes for materials and textures, etc.
See util.JSONToTable for the opposite function.
{["5"] = "ok", [5] = "BBB"}
)Writes the positions and angles of every player to a JSON file called playerstuff.json.