DRYing up a little in JsonLogster

Change-Id: I58d936a37d98a04f2b1d43b8290313c05d2e432d