JSON-format logger and reader