Add json -t option to rg, grpatch tools