new LenientModulefileParser(this).parseRubyAST(root, chain);
}
else {
if(jsonFactory == null) {
jsonFactory = new JsonFactory();
serializer = new ValueSerializer() {
@Override
public void serialize(Appendable bld, Object value) throws IOException {
JsonGenerator generator = jsonFactory.createJsonGenerator(CharStreams.asWriter(bld));
generator.setCodec(new ObjectMapper(jsonFactory));
generator.writeObject(value);