package com.github.twitch4j.helix;

import com.fasterxml.jackson.core.io.JsonStringEncoder;
import com.fasterxml.jackson.core.util.BufferRecyclers;
import feign.Param;

public class JsonEscaper implements Param.Expander {

	private static final JsonStringEncoder JSON_ESCAPER = BufferRecyclers.getJsonStringEncoder();

	@Override
	public String expand(Object value) {
		if(value == null)
			return "";
		else
			return new String(JSON_ESCAPER.quoteAsString(value.toString()));
	}

}

@@ -89,64 +89,8 @@
 er;%0A
-import com.fasterxml.jackson.core.util.BufferRecyclers;%0A
 impo
@@ -219,27 +219,8 @@
 R = 
-BufferRecyclers.get
 Json
@@ -232,16 +232,28 @@
 gEncoder
+.getInstance
 ();%0A%0A%09@O

Update for latest Jackson