I don't really like the fact that i need to decode the json modify and update it would be nice if we could work with a payload that is a `ArrayObject` or something that be passed by ref?