added commandline parameter for json as argument