Adding json output for the java prototypes.  

Also, created a simple JSON string builder lib so its easier to build the JSON strings.