Clean up code ; Pipe output to jq to format json