Simple JSON API

if you put the time out here it will always be equal to the time that the server was started and not the current time.