return a log as a json string