During development, custom menu when the code looks like everything is normal, after running, unexpectedly returns an error message 40016
See the official documents say the number of buttons is not correct, but checked and no problem. Finally json data in single quotation marks into double quotes, the perfect solution.