Added code to serve up json