开发者

Pass values for dropdown for EXT Js using JSON

I want to pass JSON list of values to dropdown wrote in ext js. i AM PAAING IT FROM java using the code

String json = "items:[{name:kiran,kumar,shetty}]"; 
return json;

But I am getting the error: uncaught exception: Unable to parse the JSON returned by the server: You're trying to decode an invalid JSON String: [nam开发者_如何转开发e:praveen,kiran,narendra]

Could anyone please let me know how to pass multiple values for dropdown? Thanks.


That's not valid JSON. You should try something like

"{\"items\":[{\"name\":\"kiran\"},{\"name\":\"kumar\"},{\"name\":\"shetty\"}]}"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜