Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
I copied the example given under https://forge.codesys.com/lib/pro-json/home/Home/ to a function block.
ComposingJSON works fine but when I run ParseJSON the values in all variables is always NULL.
From my experience, it could either be the layout of the struct which doesn't match the json file, or characters / sizes of the members in the json file, which are not supported (yet).
Maybe you could share a codesnippet, json file and then the content of the struct (to see if some members were initialized).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everybody,
I copied the example given under https://forge.codesys.com/lib/pro-json/home/Home/ to a function block.
ComposingJSON works fine but when I run ParseJSON the values in all variables is always NULL.
What could be my mistake? Any known bugs?
Talk Topic about project #pro-json
From my experience, it could either be the layout of the struct which doesn't match the json file, or characters / sizes of the members in the json file, which are not supported (yet).
Maybe you could share a codesnippet, json file and then the content of the struct (to see if some members were initialized).
Found the same issue. I managed to correct it, see this post: https://forge.codesys.com/forge/talk/forge/thread/67062b092e/#cab2