Class AttachmentJsonator

java.lang.Object
com.atlassian.confluence.json.jsonator.AttachmentJsonator
All Implemented Interfaces:
Jsonator<Attachment>

public class AttachmentJsonator extends Object implements Jsonator<Attachment>
Creates JSON objects for attachments. Strings are not HTML escaped.
  • Constructor Details

  • Method Details

    • convert

      public Json convert(Attachment attachment)
      Description copied from interface: Jsonator
      Creates a Json representation of a given object
      Specified by:
      convert in interface Jsonator<Attachment>
      Parameters:
      attachment - the object to be serialized
      Returns:
      Json JSON representation of the given object