<script type = "text/javaScript">/*** Ausgabe eines JS -Objekts als JSON -Format String* @param {Objekt} _obj: Objekt, das als Zeichenfolge ausgegeben werden muss if (t! } return string (_obj); } else {if (_obj Instance von Datum) {return _obj.tolocalestring (); } // Array oder Objekt var n, v, json = [], arr = (_obj && _obj.constructor == Array); für (n in _obj) {v = _obj [n]; t = typeof (v); if (t == 'String') {v = '"' + v + '"'; } else if (t == "Objekt" && v! == null) {v = this.obj2string (v); } json.push ((arr? '': '"' + n + '":') + string (v)); } return (arr? '[': '{') + string (json) + (arr? ']': '}'); }}; var obj = { "result" : { "fs" : { "TSP.IBR.MIRROR" : [{ "_value" : "1.0", "_class" : 4 }], "TSP.IBR.GET_FNAMES" : [{ "_value" : "0.0", "_class" : 4 }], "TSP.IBR.GET_TOKEN_ID" : [{ "_Value": "0.0", "_class": 4}], "tsp.ibr.info": [{"_Value": "0.0", "_class": 4}]}}, "iscanceled": false, "e": ":": ",", ",", ",", ",", ",", ",", "", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", ",", "code" : 0, "reqUID" : "xxxx-xxxxxxx-xxxxx-6c2f17bb-ea18-42ec-98fa-3f63b8d26aba-nd-rq", "version" : "1.0", "fName" : "TSP.IBR.GET_FNAMES", "message" : "4 functions were successfully obtained", "dir" : "Down", "Nodetime": 1362462128706, "IsKeyCompressed": Falsch, "SEQ": 2} Alarm (obj2string (obj)) </script>