REFACTOR 'main' method to 'getJson' in server.clj