Original post

Hello All ,
I have use exec.Command(command) on and convert it to string. When I RunCommand tasklist on windowOS it return string type . How to convert it to json? i dont understand
tasklist

This My Code : https://play.golang.org/p/gn2aMVCE9Xb

Result :
tasklist

I need this result :
{
“image_name” : syystem idle proses ,
“PID” : 0 ,
“session_name” : “services”,
“session” : 0 ,
“mem_usage” : “8K”
}
etc

please help me to resolve this