From: Erik Garrison Date: Tue, 8 Jun 2010 17:05:59 +0000 (-0400) Subject: json output X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=12d1865e534b6561d0becb68afef351ebf0f74f8;p=bamtools.git json output --- diff --git a/bamtools_convert.cpp b/bamtools_convert.cpp index 607c380..655c25a 100644 --- a/bamtools_convert.cpp +++ b/bamtools_convert.cpp @@ -187,7 +187,7 @@ void BamTools::PrintJSON(ostream& out, const BamAlignment& a) { for ( ; cigarIter != cigarEnd; ++cigarIter ) { const CigarOp& op = (*cigarIter); if (cigarIter != cigarBegin) out << ","; - out << "[\"" << op.Length << ",\"" << op.Type << "\"]"; + out << "\"" << op.Length << op.Type << "\""; } out << "],"; }