added json output for /g