New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi Array and Struct of Struct of ... Issue #1
Comments
Hi Mehment, thanks for your work. Tim(who made this lib) already did some changes which may solve your problems to. please try his lib and and give me a info. thanks! BR Stefan |
Hi Memeht, I teste your case, it still doesen't work with the lib of Tim. I'm implementing your changes and will suggest Tim an new version. With your changes I get: {"test3":{"header":{"stamp":{"sec":1666700230,"nanosec":666597925},"frame_id":"asad"},"goal_pose":{"position":{"x1":3.212,"y1":1.656,"z1":2.977},"orientation":{"x2":3.212,"y2":1.656,"z2":2.977}},"velocity":0.123,"acceleration":5.986}} Bevor: BR Stefan |
Hi Mr. Stefan, I have new problems.
*******IO_Value : ARRAY [1..255] OF JSONVAR;
Thanks, Mehmet |
Hi Mehment, please try this version, Tim already solved some array problems, else, please show me the call of the FB. here I implementet your soulution too, and althoug the problem wirth the application name. BR Stefan |
Hi Stefan, I'm sorry for the late reply. I converted my project using network variable. But I prepared a simple program for you. You can download from the link below. https://sendgb.com/NhA0RYfsDvw Thanks to the Library |
I think I encouter this problem as well. |
this is a different Problem, you want a anonymous array in a array. A named array would work. BR Stefan |
Hi Stefan, I'm sorry for the late reply. I am busy at these days. I do not any problem because of too long array name. What ist the "old Problem" missing ".0"? ==> It's not a problem with the library. I work with large and floating numbers. You can understand what the problem is from the images in the attached document. https://sendgb.com/SfdlIiYFbQk Note : When I had a problem with the library, I used network variables. I plan to use it in next projects. Thanks to the Library |
I encountered 2 problems while generating json. I want to create multiple array in a struct and struct of struct of ... .While debugging, I realized that it was caused by JSONVAR (FB) and made changes.
Change: I added at this statement for struct of struct of .. issue . You can look at added attached image.
Change: I changed this statement for multiple array issue. You can see it at image.
Example of created json (struct of struct of.. ):
'{"header":{"stamp":{"sec":1666700230,"nanosec":666597925},"frame_id":"asad"},"goal_pose":{"position":{"x1":3.212,"y1":1.656,"z1":2.977},"orientation":{"x2":3.212,"y2":1.656,"z2":2.977}},"velocity":0.123,"acceleration":5.986}'
Thanks for the library.
The text was updated successfully, but these errors were encountered: