<i>Number.parseInt is not that bad but I&#x27;ll take to_json() global function instead of (new System.Web.Script.Serialization.JavaScriptSerializer()).Serialize() (or was it Newtonsoft.Json.JsonConvert.SerializeObject()?) any day.</i><p>Or, to keep with the JS example:<p><pre><code>   JSON.stringify()
</code></pre>
Not exactly that bad.