做了个c++的
TJSONObject *JSON = (TJSONObject*)TJSONObject::ParseJSONValue(Memo4->Text);
JSON = (TJSONObject*)JSON->Get(0);
JSON->Count;
((TJSONPair*)JSON->Get("cmd"))->JsonString->Value();
((TJSONPair*)JSON->Get("cmd"))->JsonValue->Value(); ((TJSONPair*)JSON->Get("error"))->JsonString->Value();
((TJSONPair*)JSON->Get("error"))->JsonValue->Value(); TJSONArray *jar = (TJSONArray*)((TJSONPair*)JSON->Get("data")->JsonValue);
for (int i = 0; i < jar->Count; i++)
{ for (int j = 0; j < 4; j++)
{
Caption = ((TJSONPair*)((TJSONArray*)jar->Get(i))->Get(j))->JsonString->Value();
Caption = ((TJSONPair*)((TJSONArray*)jar->Get(i))->Get(j))->JsonValue->Value();
} }
TJSONObject *JSON = (TJSONObject*)TJSONObject::ParseJSONValue(Memo4->Text);
JSON = (TJSONObject*)JSON->Get(0);
JSON->Count;
((TJSONPair*)JSON->Get("cmd"))->JsonString->Value();
((TJSONPair*)JSON->Get("cmd"))->JsonValue->Value(); ((TJSONPair*)JSON->Get("error"))->JsonString->Value();
((TJSONPair*)JSON->Get("error"))->JsonValue->Value(); TJSONArray *jar = (TJSONArray*)((TJSONPair*)JSON->Get("data")->JsonValue);
for (int i = 0; i < jar->Count; i++)
{ for (int j = 0; j < 4; j++)
{
Caption = ((TJSONPair*)((TJSONArray*)jar->Get(i))->Get(j))->JsonString->Value();
Caption = ((TJSONPair*)((TJSONArray*)jar->Get(i))->Get(j))->JsonValue->Value();
} }
解决方案 »
- 关于ADOQuery的SQL查询语句问题~~
- 请教监控程序
- delphi调用其他工具开发的web server的问题
- 我的意思是在DBGRID中拖动鼠标,凡是被拖动放的记录显示为蓝色即为选中状态,如何实现多条记录为选中状态?请在虾们邦帮忙!
- 请问南京趋势科技的研发中心,怎么样?
- 怎样将一个文件放到image字段里,以及从image字段里下载一个文件
- 用quickRep 作报表时,将quickrep控件 放在reportform上,每次用 reportform:=Treportform;reportform.preview ;都会出现reportform 表单
- 如何把powerpoint和excel转换为word文档
- 做了一个软件系统.就差一个注册了.
- listview如何添加第三列第四列的内容
- 求Record结构体的排序算法----------大虾请进!!!!!!!!!
- 有多个radiogroup时,如何判断鼠标单击了哪个radiogroup?
[
{
"cmd":32,
"error":"",
"data":[
{"cp":"xx1", "js":"5124", "jsqwz":"xxx1","b":"2012"},
{"cp":"xx2", "js":"5124", "jsqwz":"xxx2","b":"2013"},
{"cp":"xx3", "js":"5124", "jsqwz":"xxx3","b":"2014"}
]
}]