Fixed attachment deserialisation

Using the old version with attachments would result in a 403 error
(Incompatible JSON) due to the wrong json deserialisation