Libraries: JSON Serialization and Deserialization (native MQL) - page 10

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
fixed
1.13
Yeah, I probably didn't understand what your problem was, the lines you showed you were able to get everything.
The exchange gives this response.... (and the number of pairs can be different... for example, if the exchange will switch off or add some pairs).
I need to somehow get all the names of pairs in the response (btc_usd, btc_rur, btc_eur, etc.) in a loop or through a recursive call, it doesn't matter.... I can't figure out how to get the first and next name of a pair... I can't figure out how to get the first and the next name of a pair....
the exchange gives this response.... (and the number of pairs can be different.... for example, if the exchange will switch off or add some pair).
I need to somehow get all the names of pairs in the response (btc_usd, btc_rur, btc_eur, etc.) in a loop or through a recursive call, it doesn't matter.... I can't figure out how to get the first and next name of a pair... I can't figure out how to get the first and next names of a pair... I can't figure it out....
Cut the string at the beginning
Then delete the } at the end of the string
Then feed the string to the parser.
Fill your structure with parser data. And then do what you want with your structure - names of pairs, etc.
Trim the line at the very beginning
Then delete at the end of the line }
Then feed the string into the parser.
Fill your structure with parser data. And then do what you want with your structure - pair names, etc.
"Then feed the string into the parser." - is that right? dataM.Deserialize(ttt);
"Fill your structure with parser data." - how to do it? please, give me a line..... (you don't need to describe the structure))
ss I meant a simple structure, not an object oriented one, such as
I think there is something similar here, but I can't figure it out. (I'm not good at OOP, yet...).fixed
1.13
Try this example:
"Then feed the string to the parser." - is that right? dataM.Deserialize(ttt);
"Fill your structure with parser data." - how to do it? please, give me a line..... (you don't need to describe the structure))
Look in my example about companies and model range - it shows how to get data from parser.....
o_o:
fixed
1.13However..... Disassembles and collects timing perfectly, but I can't get the data.... maybe no dables, ints, etc.? - leave the string as it is in the form of string and then decide how to deal with this string from the outside.
However..... Disassembles and assembles the term is great, but I can't get data..... Maybe to hell with dables, ints, etc.? - leave the string as it is in the form of string and then decide how to deal with this string from the outside.
You have an array in an array. it means you need to add another loop level i3.
модельный_ряд1 :[ [ 0.1,1.3], [ 0.2,1.5], [ 0.3,2.0] ]
A HUGE THANK YOU to everyone who responded!!!!
we get the names of the couples:
Bottom line:
what we needed!
you have an array in an array. so you need to add another loop level i3
Sorcery, 82 levl.
Can't you make it any simpler?
sorcery, 82 levl.
Couldn't you make it any simpler?
What do you mean? You're the ones who made the arrays so deep.