the WebRequest result is a array. and i invoke like this
jv.Deserialize( result);
how can i iterate it
awesome,I have added ulong and datetime type support to it.
the WebRequest result is a array. and i invoke like this
jv.Deserialize( result);
how can i iterate it
'
you can use jv[0]["a"].ToInt() to get 1,jv[1]["a"].ToInt() to get 2
array out of range in 'jAson.mqh' (330,22) 报错了
位置在:
case '{': // начало объекта. создаем объект и забираем его из js
i0=i+1;
if (m_type!=jtUNDEF) { Print(m_key+" "+string(__LINE__)); return false; }// ошибка типа
m_type=jtOBJ; // задали тип значения
i++; if (!Deserialize(js, slen, i)) { Print(m_key+" "+string(__LINE__)); return false; } // вытягиваем его
return js[i]=='}' || js[i]==0; // 这里异常了 ,请问如何解决
break;
谢谢
2823500551@qq.com
JSON Serialization and Deserialization (native MQL):
JSON 协议序列化和逆序列化。代码从高速的 С++ 程序库移植而来。
实践例程: 在网站上授权并解析响应
作者: o_O