Hi,
you should try to import all the classes of the library
import groovy.json.*;
Alternatively, if the Groovy script will use specific classes you can import only the needed ones. For example:
import groovy.json.<class1>;
import groovy.json.<class2>;
where <class1> and <class2> are the names of a Java classes.