On Dec 11, 2010, at 10:00 AM, Aparajita Fishman wrote:
>> I'll add that I've dumped more that 32k characters to textarea before using
>> ->write, then copied and pasted without any problems. Seems to be in ToJSON.
>
> ->write calls toJSON, so if that works the problem is probably not in toJSON.
> Do you have some code that can reproduce the problem?
>
> Please note that if the problem is in the plugin and it's v4.5, I may not be
> able to do anything about it.
>
No, it's not the plugin, it's a limitation on the ->add method (at least in
v4.5). I have not looked in any detail in the Json library, but seem to
remember that the ->add method create the json text in some kind of tree or
other structure.
I sent a collection that was over 500K in text and probably blew some text
limit in the add method (or maybe plug-in)
Since this is a conversion routine (e.g. onetime), I'm flexible. I had two
things nested
jobstage
stage - basic info on attributes of a record
user - a collection of all users related to stage, info gather from
several records
I just busted it into two different collections and called
$json->add($cid;$conv{"user"}{$cid})
for each user.
I got a blob size of 506117.
Now I just have to see if ruby will parse it - textmate won't!
Thanks for you help. Since v5 , or whatever they call it, got rid of the 32k
barrier, probably could do it in v5.
Steve
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/