Replies: 1 comment 2 replies
-
Because both NJSON and STJ have implicit knowledge how to serialize specific types it's easier for those libraries. I found a workaround where you can return custom jint/Jint.Tests/Runtime/InteropTests.Json.cs Lines 81 to 109 in cb4e73d So requires some manual plumbing work, but I think the sample should cover your use case. Ideally I think this would be possible by setting One possible enhancement could be to allow such |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using some C# inside scripts. However, when attempting to use
JSON.stringify
I run into aJavaScriptException
'Cyclic reference detected'.Is there a way to have Jint use a JSON serializer for C# objects? Using the latest 3.0.0-beta-2038. Below is an example. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions