Bug 965631 - use json_dumps helper function to render ouput; r=telliott