The previous update of this API utilized apache's StringEscapeUtils for escaping unescaped json strings inputted by the user.
The spigot hack is missing a lot of imports, including this one.
This current version uses the JsonObject class, which is available in the spigot hack's imports, and will therefore work for both.