Refactor the output-related code of strace to support structued output in JSON format.