Skip to content

JSON Serialization fails for LabVIEW classes containing Variant data #27

@boehrlii

Description

@boehrlii

Description

When a LabVIEW class contains a Variant in its private data, the JSON serialization process produces an incomplete or incorrect JSON string. As a result, deserialization fails because required data is missing. User Error or is it not able to handle Variants in Classes.


Steps to Reproduce

  1. Create a LabVIEW class with a Variant element in the private data cluster.
  2. Populate the class instance with valid data (including the Variant).
  3. Serialize the object using Generic Object Serializer (JSON mode).
  4. Attempt to deserialize the generated JSON string back into the original class.

Expected Behavior

  • The serializer should produce a complete and valid JSON representation of the class, including the Variant data.

Actual Behavior

  • The generated JSON string is incomplete and does not contain all required data.
  • During deserialization, an error occurs.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions