
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
What do we do now? Is there any other way to solve this?
Thanks for the lib, but there are some problems.
I can't figure out how I can stick an array using the library?
For example, there are
The problems arise at the level of declaring a variable of CJAVal type. Using CJAVal primer(jtARRAY, a); does not help.
Could you please supplement or expand the examples file ?????
Greetings Victor,
Thank you for your remark. Yes indeed, the library version does not have a function to add array elements explicitly.
The library has been updated.
Version 1.03 will be available in Codebase after verification.
You can download 1.03 attached to the post for now.
Working example for an array:
Alexey, thank you for your labours! Very necessary library!!!
I have such a practical task.
There is 1 CJAVal object of database type. And there are 2 CJAVal objects of order properties type.
I want the database to contain data about these orders.
Approximately like this:
I would like the Response field to be an array of order properties.
And that such a record jv_database["Response"][idx] should return a pointer or the order object itself.
Please advise. Thanks
And that such a record jv_database["Response"][idx] should return a pointer or the order object itself.
Do I understand correctly that we are talking about a reference by a numeric index? Should a pointer to an object from DB["Response"] array be returned at index [idx]?
I think you can.
---
but initialisation by type {x1, x2} - probably can't be done. As I remember, this type of initialisation is available only at the moment of variable declaration, i.e. as a form of constructor. But not as a form of setting values in the created array.
That's why you will have to do it this way:
Do I understand correctly that we are talking about handling by numeric index? Should a pointer to an object from DB["Response"] array be returned by index [idx]?
I think you can.
Another question. There is an object of orders:
The source line from which we read contains information about several orders. It is not known in advance how many of them there are.
How can I read all the information from the string without specifying the size for the order object?
What line are we talking about?
what string are we talking about?
Wrong answer.)
I need to see exactly what you want to parse, is it json with an array or are you making up your own. It's hard to guess.
That's the kind of string: