hi,
I worked almost everything out. it's amazing how helpful this list can be.
However, not everything is working. My app is installed in eyeOS. To pass on
the drawings I use something like a d-bus in my environment. This class is
very simple and sends stuff via POST after stringifying it with
qx.util.Json.stringify().
This method is throwing me an exception for long strings. Maybe the problem
isn't the length, but that's what I observed.

Here the code in qx.util.Json.stringify I think makes it fail

        if (/[^,:{}\[\]0-9.\-+Eaeflnr-u
\n\r\t]/.test(text.replace(/"(\\.|[^"\\])*"/g, ""))) {
          throw new Error("Could not parse JSON string!");
        }

does anybody know why this may be failing?

my strings come from a serialization:


> //on the sending client:
> var str = qx.xml.Element.serialize(someElement.getDomElement());
>
>

Example of *non* working string

<path xmlns="http://www.w3.org/2000/svg"; fill="none" stroke="green"
stroke-width="5" stroke-linecap="round" d="M32,72L33,71 38,66 43,61 46,59
49,58 53,56 56,55 59,54 62,53H65 67 69 70 71L73,54 74,55 75,57 76,59
77,63V66L78,68V70 72 74 75 77L77,78 76,79 75,80 74,82H72L71,83 68,85H67 66
64 62L59,84V83H57 56L55,82V80 78 76 74 73L56,71V70H57L58,69H59L61,68 63,67
66,66H69L73,65 77,64 84,63H88L95,62H98 101 103 104L106,63H107L108,64H110
111L112,65 113,66 115,69V70L116,72 128,59H129 132 133 134 135 136 137 138
139L140,60H141 142 144L146,62H148L149,64 151,66 152,69 153,74 154,78V81 85
89L153,92 152,96 151,98 150,100 149,101 148,102H147L143,101V100 99 97
95L146,90 148,89 149,87 151,84 154,82 156,80 163,75 166,74 168,73
169,72H170"/>


Example of working string

<path xmlns="http://www.w3.org/2000/svg"; fill="none" stroke="green"
stroke-width="5" stroke-linecap="round" d="M188,145L217,123
219,124H221L222,125H223 224L226,126 228,127 229,128V129L230,130V131H231V132
133H232V134 135L233,136V137 138 139 140 141 142L232,143
231,144V145L230,146H229V147H228 227 225 224 223L222,146H221 220V145
144L221,143V142L222,141H223V139H224L227,137 228,136 229,135H231V134L233,133
235,132 236,131H237 238L239,130H240 241L242,129H243L245,128H246 248V127H250
251 252 253 254 255 256"/>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to