LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

YAML to JSON converter

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

Message 1 of 3
(1,668 Views)

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

Antoine Chalons

0 Kudos
Message 2 of 3
(1,599 Views)

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!

_____________
Creator of the BundleMagic plugin for LabVIEW!
0 Kudos
Message 3 of 3
(373 Views)