attempt at fixing issue 12

There is likely a "more ruby" way to fix #12, but I was coming back to this as I haven't been able to find anything else to do JSON output for logs.  Thoughts?