From 12d1865e534b6561d0becb68afef351ebf0f74f8 Mon Sep 17 00:00:00 2001 From: Erik Garrison Date: Tue, 8 Jun 2010 13:05:59 -0400 Subject: [PATCH] json output --- bamtools_convert.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 << "],"; } -- 2.39.5