Implemented basic Daemon functionality for JSON endpoint