jsonBridge.registerSerializer(new NumberSerializer());
jsonBridge.registerSerializer(new BooleanSerializer());
jsonBridge.registerSerializer(new PrimitiveSerializer());
jsonBridge.registerSerializer(new RectangleSerializer());
jsonBridge.registerSerializer(new ColorSerializer());
jsonBridge.registerSerializer(new FontSerializer());
jsonBridge.registerSerializer(new EnumSerializer());
} catch (Exception e) {
throw new ServletException("json : could not register all serializers", e);
}