extjs嵌套json存储rails
我正在尝试发布有一些硬编码记录的 ext js json 存储。 Customer 和 Customer 之间存在一对多关系。产品..
{
"customers": [
{
"id": 123,
"name": "Ed",
"products": [
{
"id": 50,
"prodnm": "xyz",
rate:20,
},
{
"id": 60,
"prodnm": "abc",
rate:30,
}
]
}
]
}
我正在使用导轨和想检查我是否得到正确的 json 响应..请帮助..
i am trying to post ext js json store that has some hard coded records..
there is one-to-many relationship between Customer & Product..
{
"customers": [
{
"id": 123,
"name": "Ed",
"products": [
{
"id": 50,
"prodnm": "xyz",
rate:20,
},
{
"id": 60,
"prodnm": "abc",
rate:30,
}
]
}
]
}
iam using rails & want to check whether i m getting proper json response..plz help..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为此,您可以使用此代码从商店获取 json。
在控制台中打印该 json,然后复制该 json 并将其粘贴到 此处,单击格式,它将显示格式化的 json 。
For that you can use this code to get the json from store.
print that json in console then copy that json and past it here, click on format it will show you a formated json.
检查响应的最佳方法是使用 Fiddler
The best way to check the response is by using Fiddler