menu refers to the return value of Menu:Create
Show
menu:toJSON will return a menu, containing no functions.
Parameters
menu:toJSON()Example
client/example.lua
local menu--[[Menu]] = Menu:Create('Title', 'Description', 'top-right', '#fff');
local placeholder = menu:AddPlaceholder('Placeholder');
-- print(json.encode(menu)); -- Will show an error
print(json.encode(menu:toJSON())) -- Won't show an error