Simple example of generating JSON Schema from LabVIEW data types.
- To provide a starting point for generating a JSON Schema from a LabVIEW data type -- specifically, to be used in conjuction with the JSONtext and JKI JSON Serialization libraries.
- To provide enough of a schema for interoperability with other software tools (typically non-LabVIEW tools) that can utilize JSON Schema for a variety of purposes like code generation, data validation, etc.
- This project does not aim to support all features of JSON Schema like validation, constraints, type references (
$ref
) and definitions ($def
), etc. - This project does not aim to create a validator (JSONtext already has one)
- This projecty does not aim to support all LabVIEW data types (but it would be nice to support all the types that JSONtext and JKI JSON Serialization support)
- Project Status: Example Code / Non-Production
- Save Version: LabVIEW 2020
- Basic Data Types
- Array
- String
- Cluster
- Floating Points
- Integers
- Path
- Enums
- Others
- Unit Tests
- Use LabVIEW 2020 or LabVIEW 2024+
- Install the required VI Packages using VIPM (see the
.vipc
and.dragon
files for dependencies: JSONtext and OpenG Variant) - Open
source\Generate JSON Schema.lvproj
and try runningsource\Example Test JSON Schema.vi
(and experiment with changing the input data type)