12-17-2022 09:45 AM
Just in case someone finds this useful.
Here is a simple YAML to JSON converter.
It uses yaml-cpp (https://github.com/jbeder/yaml-cpp) and tojson (https://github.com/mircodezorzi/tojson) to do the job.
The wrapper is written in LabView 2020.
It is fast and light-weight.
Feel free to use it in your projects.
In case you like it give me a Kudo.
Greetings, Manfred
12-19-2022 03:26 AM
This is Windows 64bit only
There is a project here : https://gie.gcentral.org/team/YAML-JSON-YAML
It doesn't mention is it's going to be available on all plateforms (Linux, RT, etc..)
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
06-07-2024 02:34 PM - edited 06-07-2024 02:36 PM
Thank you for providing this. I am loathe to use this tool, as it does implicit type conversion, such as turning "NO" into "false" (the "Norway Problem"). I am working on a LabVIEW-native implementation that follows the ethos of StrictYAML, which should interpret all yaml scalers as strings. But, with caveats, the above tool is a good starting point!
From this point, you can use the LabVIEW JSON tools to extract required data from YAML!