changed url for json output based on stat package type.