JSON writing fix, JColorChooser (mnemonic change) fix
[jalview.git] / src / jalview / io / JSONFile.java
index 390c771..427ad8f 100644 (file)
@@ -218,8 +218,8 @@ public class JSONFile extends AlignFile implements ComplexAlignFile
           jsonAlignmentPojo.getSeqGroups().add(seqGrpPojo);
         }
       }
-      org.json.JSONObject generatedJSon = new org.json.JSONObject(jsonAlignmentPojo);
-      jsonOutput = generatedJSon.toString();
+      
+      jsonOutput = JSONUtils.stringify(jsonAlignmentPojo);
       return jsonOutput.replaceAll("xstart", "xStart").replaceAll("xend",
               "xEnd");
     } catch (Exception e)