use json to serialize payload objects