fix bug 1092140, use JSON for pig jobs. patch by tmary