Port turbostat to json format

(Edited from  Nicolas Iooss <nicolas.iooss_git@polytechnique.org>)