Jump to content

Unflatten From JSON breaks on NUL characters (LabVIEW 2017+)


LogMAN

Recommended Posts

I recently stumbled upon this issue while debugging an application that didn't handle JSON payload as expected.

As it turns out, Unflatten From JSON breaks on NUL characters, even though Flatten To JSON properly encodes them as ("\u0000").

554466342_UnflattenFromJSONbreaksonNULcharacters.png.90294f3d27024f920edd7e9d216070e6.png

image.png.63b909174282610f26ee9be58d9d38d4.png

I have confirmed the behavior in LabVIEW 2017, 2019, and 2020 (all with latest service packs and patches), currently waiting for confirmation by NI.

Workaround: Use JSONtext :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.