&gt; Number.parseInt is not that bad but I&#x27;ll take to_json() global function instead of (new System.Web.Script.Serialization.JavaScriptSerializer()).Serialize() any day.<p>It doesn&#x27;t have to be one or the other.<p>In fact, array functions could just be under the same static class, like Array::TheFunction() . It would be acceptable and limit chances of namespace collision .