use GsonSerializers to serialize key pair into json before returning