ibm worklight存储过程 [英] ibm worklight stored procedure

查看:188
本文介绍了ibm worklight存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想解析 javascript 中的 json 对象,并且必须以字符串格式获取密钥传递的值。

I want to parse this json object in javascript and have to obtain the values of key pass in string format.

{
   "isSuccessful": true,
   "resultSet": [
      {
         "name": "a",
         "pass": "123",
         "time_stamp": "2014-04-07T10:13:17.000Z"
      },
      {
         "name": "chetan",
         "pass": "123456",
         "time_stamp": "2014-04-07T10:13:34.000Z"
      },
      {
         "name": "dileep",
         "pass": "456321",
         "time_stamp": "2014-04-07T10:13:54.000Z"
      },
      {
         "name": "bnc",
         "pass": "654321",
         "time_stamp": "2014-04-07T10:19:37.000Z"
      }
   ]
}


推荐答案

如果您在一般意义上提问(没有指向Worklight的链接),我会查看其他答案:

If you are asking in a general sense (no links to Worklight) I would look at other answers:

< a href =https: //stackoverflow.com/questions/1078118/how-do-i-iterate-over-a-json-structure\">如何迭代JSON结构?

JavaScript循环通过json数组?

如何循环或枚举JavaScript对象?

在Worklight中,如果您的示例是Worklight适配器的响应,则响应将位于名为的属性中invocationResult

In Worklight, if your example is the response of a Worklight adapter, the response will be in a property called invocationResult.

另见 https://www.ibm.com/developerworks/community/blogs/worklight/entry/handling_backend_responses_in_adapters?lang=en

这篇关于ibm worklight存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆