json encode payload in register
don't multi-encode json