Hi Matt,
I only have a couple of guesses as to why its not working. But it might be helpful to know what libraries you've tried and whether properties 4 and 5 are supposed to be arrays or objects. In the example you've indicated that they are objects but mention that the output for them consists of empty arrays.
Since you've done so much to try and solve the problem you've probably already covered these but just in case.
My first guess would be that the libraries are optionally recursive and perhaps you've forgotten to pass an argument which tells them follow nodes.
Another possibility is that your properties 4 and 5 are inheriting
their properties and the libraries only follow properties which belong
to the object itself and not to a super object (via the hasOwnProperty method).
If neither of those is the case perhaps when you built your object properties 4 and 5 were supplied as references which were deleted/modified by the time you tried to stringify the resultant object.
Anyway, you could try the dojox.json.ref.toJson method in
Dojo (
docs) if you haven't yet which should do the trick unless the problem is outside the library itself.
Seth C. Wessitsh
se...@wessitsh.com