Encodes a table to JSON.
result, err = json.encode(tbl)
tbl is the table to encode.
tbl
result is the resulting string, or nil on failure
result
nil
err is the error message if there is one available, always set to nil on success
err
Premake 5.0 or later.