Updated to Java 7
Created an endpoint for JSON response