[engine] Fix bug in JSON generated for machine statistics.