The nice thing about the web worker postMessage()
when sending an object, is it serializes the entire object including all elements of the object that are themselves objects. All data that is a pointer to another object comes across and is rebuilt with everything pointing at the right thing.
The problem is... making sure it only brings across what I need. I am pulling a subset of a linked list of objects where there is a lot of pointers in object to other objects. ie, it's not just child elements that are an object pointed to by just the parent object, there's a lot of relationship pointers.
Is there a way to see what the postMessage()
copies across? Like a way to see the raw JSON?