Wouldn't it be safer to have the version key on the root dictionary ('body') instead of part of messages?