02-11-2023 05:45 PM - edited 02-11-2023 06:20 PM
Hi,
I have a JSON setting file witch is loaded from my .VI
My JSON is like this:
I need to write the charactère 0x00 which is \u0000 but when I do that labview can't interpret it:
It replaces all the data by "?".
Here is my the labview structure I use:
Do you have a fix?
Thanks for taking a look at my situation.
Solved! Go to Solution.
02-12-2023 02:34 AM
The standard JSON functions that come with LabVIEW have a known bug of truncating strings at the first zero, even if that zero is properly represented as \u0000. You will need to use a different JSON library, such as JSONtext (which I wrote).
BTW, you shouldn't need to do all that utf8 conversion; the JSON functions should handle that.
02-12-2023 11:17 AM
Thanks for your response.
So I have used the lib you tell me JSONtext and it works well,
Here's is my labview (there may be a better way to do this).
Have a good day