configuration = builder.build();
}
final Class<? extends Object> beanClass = originalBean.getClass();
final Class<?>[] classesToBeBound = {beanClass};
JSONJAXBContext context = properties.isEmpty() ?
new JSONJAXBContext(configuration, classesToBeBound) : new JSONJAXBContext(classesToBeBound, properties);
JSONMarshaller marshaller = context.createJSONMarshaller();
JSONUnmarshaller unmarshaller = context.createJSONUnmarshaller();
printAsXml(originalBean);
StringWriter sWriter = new StringWriter();
marshaller.marshallToJSON(originalBean, sWriter);