Fix json formatting of printlog to be valid json

wt print log does not output valid json. It adds unnecessary commas after a the last field in an object, and after the last closing brace in an array of objects.

A few fields were also missing commas.

Adhoc test with ex_log, and by validating the output throw [jq](http://stedolan.github.io/jq/).