]> git.donarmstrong.com Git - bamtools.git/commitdiff
json output
authorErik Garrison <erik.garrison@bc.edu>
Tue, 8 Jun 2010 17:05:59 +0000 (13:05 -0400)
committerErik Garrison <erik.garrison@bc.edu>
Tue, 8 Jun 2010 17:05:59 +0000 (13:05 -0400)
bamtools_convert.cpp

index 607c38000d1932a54e81eec6bf6bda159bcdc051..655c25a623013d9c95714cb954d087184aaa62ce 100644 (file)
@@ -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 << "],";
     }