package org.knowm.xchange.currency;

import java.io.IOException;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

/**
 * @author timmolter
 */
public class CustomCurrencyPairSerializer extends JsonSerializer<CurrencyPair> {

  @Override
  public void serialize(CurrencyPair currencyPair, JsonGenerator jsonGenerator,
      SerializerProvider serializerProvider) throws IOException, JsonProcessingException {

    //    jsonGenerator.writeStartObject();
    jsonGenerator.writeString(currencyPair.toString());
    //    jsonGenerator.writeEndObject();

  }
}

@@ -112,67 +112,8 @@
 or;%0A
-import com.fasterxml.jackson.core.JsonProcessingException;%0A
 impo
@@ -491,33 +491,8 @@
 tion
-, JsonProcessingException
  %7B%0A%0A

delete unnecessary exception from throws list