Passing JSONLoader to Java