API JSON attachments

this fix for the API JSON attachments which is match the "JSON Payload Example" with RFC 2397.
which is in the document here:
https://github.com/osTicket/osTicket-1.7/blob/develop/setup/doc/api/tickets.md