Skip to content

Enable JSON.stringify(HostObject) #94

Description

@JohnLudlow

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions