helper functions to compile job stats into json
Merge remote-tracking branch 'upstream/pigvisualizer' into pigvisualizer