@@ -0,0 +1,242 @@
+package com.haxademic.core.net;%0A%0Aimport processing.data.JSONObject;%0A%0Apublic class JSONUtil %7B%0A%0A%09public static String jsonToSingleLine(JSONObject jsonObj) %7B%0A%09%09return jsonObj.toString().replaceAll(%22%5B%5Cr%5Cn%5D+%22, %22 %22).replaceAll(%22%5C%5Cs+%22, %22 %22);%0A%09%7D%0A%09%0A%7D%0A

Add JSON helper to send data over websockets