Stringify JSON before publishing