C# Serialize to JS Object without quoting some values [duplicate] C# Serialize to JS Object without quoting some values [duplicate] json json

C# Serialize to JS Object without quoting some values [duplicate]


change the way of calling your method, something like this:

window.z= function(){ console.log('hi');}var b = { a: 'z'}window[b.a]();

so no need to change json serialization behavior.