Fix json formatting of printlog to be valid json
Fix compile warnings as errors
Merge pull request #1514 from markbenvenuto/printlog_json

Fix json formatting of printlog to be valid json