Hi,
We have an object which we give to the ClearScript engine. It happens to be an ExpandoObject we've built up dynamically and then add to ScriptEngine.Script using the technique you described in #90. Everything's happy until our script needs to do JSON.stringify(o), and we get undefined. This is similar to the issue described in #37.
Do we need to build translations from the .NET objects to proper JS ones? (I hope not - we already go from our native objects to std::maps then to ExpandoObjects!). Or is there a JSON.stringify that can traverse .NET objects?
Thanks
Hi,
We have an object which we give to the ClearScript engine. It happens to be an ExpandoObject we've built up dynamically and then add to ScriptEngine.Script using the technique you described in #90. Everything's happy until our script needs to do
JSON.stringify(o), and we getundefined. This is similar to the issue described in #37.Do we need to build translations from the .NET objects to proper JS ones? (I hope not - we already go from our native objects to
std::maps then toExpandoObjects!). Or is there a JSON.stringify that can traverse .NET objects?Thanks