Daily Archives: 24. January 2011

JSON Builder – Fun with Generics

On the train back to Berlin I spiked a little fluent Json Builder in Java. Here is one of my acceptance tests: JsonBuilder builder = new JsonBuilder<NULL>() .addObject("name") .addProperty("first", "Holden") .addProperty("last", "Caulfield") .end() .addArray("contact") .addPrimitive("00447903217666") .addObject() .addProperty("street", "5 Mayton St") … Continue reading

Posted in Software Development | Leave a comment