Format history log more nicely in JSON