Working --format json option for analyze command