-
Try out the new Jake: AI Coding Assistant for LabVIEW (beta)!
Get answers to questions about LabVIEW and discuss your code.
Details
When parsing JSON strings where a value is set to null, the following error is generated:
Error 402844 occurred at JSONtext.lvlib:Scalar JSON text to Variant (not inlined).vi:5750001
Since the use of null is an official part of the RFC 8259 specifications it seems a bit unnecessary to not handle it more gracefully.
When a LabVIEW type has been provided, as long as the parameter name matches, the null should simply be ignored/default value used. At most a warning could be generated but it is not really an error.
Test JSON:
{
"some_string": "",
"something": null
}
Please sign in to leave a comment.