What causes the result to be undefined when attempting to access a string in this manner:
obj.prop = JSON.stringify(otherObj);
However, accessing it like this:
prop = JSON.stringify(otherObj.propertyIwant);
yields the desired value without any issues ??