Thanks!
My requirement can be simplified like my example above, i want to expose Test.Output for the script side to output some debug information.
So I can pass any json object to the Test.Output, so that at the host side, it can Serialize it as string and output to the Console.
As you point out, I can stringify the object as string and pass it to the host side to output to the console, but just want to know if there is a way that I can let the host side serialize it correctly or as I expected before output to the Console.
Thanks again,
My requirement can be simplified like my example above, i want to expose Test.Output for the script side to output some debug information.
So I can pass any json object to the Test.Output, so that at the host side, it can Serialize it as string and output to the Console.
As you point out, I can stringify the object as string and pass it to the host side to output to the console, but just want to know if there is a way that I can let the host side serialize it correctly or as I expected before output to the Console.
Thanks again,