Link: http://www.cnblogs.com/uu102/archive/2012/10/12/2721580.html
In the original article, the author explains how to use C # To Call JavaScript to parse JSON strings.CodeAs follows:
Using Microsoft. JScript; Using Microsoft. VSA; Using Microsoft. JScript. VSA; Public Static Dictionary < String , String > Getmyvalue ( String Jsonsource,String Key1, String Key2) {dictionary < String , String > DIC = New Dictionary < String , String > (); String Jsonstr = " Function handlejson () {var J = " + Jsonsource +" ; Var arr1 = new array (); var arr2 = new array (); For (VAR " + Key2 + " In J. " + Key1 + " ) Arr1.push ( " + Key2 + " ); Return arr1;} handlejson (); " ; Object O =Eval. jscriptevaluate (jsonstr, vsaengine. createengine (); arrayobject arr = (Arrayobject) O; For ( VaR I = 0 ; I <= ( Int ) Arr. Length- 1 ; I ++ ) {DIC. Add (ARR [I]. tostring (), arr [I]. tostring ());} Return Dic ;}
This is basically the case. Call JS through C #, parse JSON with JS, and convert the returned value to a C # array.