Require JSON
Add payload class
Use payload in plugin