📌  相关文章
📜  将 json 对象发送到 xsjs - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:53.149000             🧑  作者: Mango

代码示例1
var JSONString = $.request.parameters.get("JSON_DATA");//Reading the input JSON string
var JSONObj = JSON.parse(JSONString);//serializing the input string
// Now we have the JSON object with us. Do what ever manipulation you want to do on it.
//For the test case i am just returning the number of rows in the JSON object
$.response.setBody(JSONObj.length);