Class AttachmentJsonator
java.lang.Object
com.atlassian.confluence.json.jsonator.AttachmentJsonator
- All Implemented Interfaces:
Jsonator<Attachment>
Creates JSON objects for attachments.
Strings are not HTML escaped.
-
Constructor Summary
ConstructorDescriptionAttachmentJsonator
(ContextPathHolder context, ThumbnailManager thumbnailManager) -
Method Summary
Modifier and TypeMethodDescriptionconvert
(Attachment attachment) Creates aJson
representation of a given object
-
Constructor Details
-
AttachmentJsonator
-
-
Method Details
-
convert
Description copied from interface:Jsonator
Creates aJson
representation of a given object- Specified by:
convert
in interfaceJsonator<Attachment>
- Parameters:
attachment
- the object to be serialized- Returns:
- Json JSON representation of the given object
-