thank you for your answer. I understand all what you wrote.
But I'm sorry my example was very simple to be understand my situation.
We have very very complex structure of globals. There is a little complex global.
TREE>zw ^arrstream
^arrstream("arr")=5
^arrstream("arr",1)="one"
^arrstream("arr",2)="two"
^arrstream("arr",3)="three"
^arrstream("arr",4)="four"
^arrstream("arr",5)="five"
^arrstream("arr1")=2
^arrstream("arr1",1,"arr")=5
^arrstream("arr1",1,"arr",1)="one"
^arrstream("arr1",1,"arr",2)="two"
^arrstream("arr1",1,"arr",3)="three"
^arrstream("arr1",1,"arr",4)="four"
^arrstream("arr1",1,"arr",5)="five"
^arrstream("arr1",1,"stream",1)="<b>Hello"
^arrstream("arr1",1,"stream",2)=" "
^arrstream("arr1",1,"stream",3)="world"
^arrstream("arr1",1,"stream",4)="!</b>"
^arrstream("arr1",2,"item")="OK!"
^arrstream("stream",1)="<b>Hello"
^arrstream("stream",2)=" "
^arrstream("stream",3)="world"
^arrstream("stream",4)="!</b>"
I don't see any way how can i serialize this global to JS object by getDocument method as i suppose. There is no limitation of stream size . It can be >10MB (some picture, PDFs, ...)
"arr":["one", "two", "three", "four", "five" ],
"arr1":[
{
"arr":[ "one", "two", "three", "four", "five" ],
To explain we have been working with M technologii for 30 let yet. Our application is based on our object model. These object instances contain complex data types, array, lists with this syntax as i wrote. I don't able to devide serialize to many steps. I need to serialize one global with array and stream nodes to JS in one step. I don't have any sugestion how do it by getDocument method with current functionality .
For me, the only solution is to create a client-side JS data model for which JS object from ewd will be source and where each property will have its own data type and getter and setter that will be able to convert any array using the join/split method for stream data type.
Thank you for help.
Josef.