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)
return /** @j2sNative swingjs.JSUtil.parseJSON$O(br) || */null;
}
+ public static String stringify(Object obj) {
+ // not actually implemented.
+ return /** @j2sNative swingjs.JSUtil.stringifyJSON$O(obj) || */null;
+ }
+
}
package jalview.util;
import jalview.javascript.json.JSON;
+import jalview.json.binding.biojson.v1.AlignmentPojo;
import java.io.FileReader;
import java.io.IOException;
return (Platform.isJS() ? JSON.parse(json) : new JSONParser().parse(json));
}
+public static String stringify(Object obj) {
+ return new org.json.JSONObject(obj).toString();
+}
+
}
key = key.toLowerCase(Locale.ROOT);
} else if (!Character.isUpperCase(key.charAt(1))) {
key = key.substring(0, 1).toLowerCase(Locale.ROOT) + key.substring(1);
+ /**
+ * remove j2s signature
+ *
+ * @j2sNative
+ *
+ * key = key.split("$")[0];
+ */
}
return key;
}
-20190129013326
+20190129150841
-20190129013326
+20190129150841