Output json file

I try it, thanks

I have many scripts and they all work fine, I use root.