Class JsonRecordMarshaller

    • Constructor Detail

      • JsonRecordMarshaller

        public JsonRecordMarshaller()
        Constructs a new JsonRecordMarshaller.
    • Method Detail

      • marshal

        public java.lang.String marshal​(java.lang.Object record)
        Description copied from interface: RecordMarshaller
        Marshals a single record object to a String.
        Specified by:
        marshal in interface RecordMarshaller
        Parameters:
        record - the record object to marshal
        Returns:
        the marshalled record text
      • marshal

        public java.lang.String marshal​(java.util.Map<java.lang.String,​java.lang.Object> map)
        Marshals a single JSON object.
        Parameters:
        map - the JSON object to marshal
        Returns:
        the JSON formatted text