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

JSON parsing and composing library:

2020-09-17
2024-02-21
  • benjaminkraus - 2020-09-17

    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

     
    • Ingo

      Ingo - 2020-09-25

      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).

       

Log in to post a comment.