How to Convert Yang Data Model to Json Data?
How Do I Convert "Yang" Data Model to "Json"? as There Is Many Many Docs Available in Web, in That They Changed in Yang Synatx to Json but How the Value for...
How do I convert "YANG" data model to "JSON"? As there is many many docs available in web, in that they changed in YANG synatx to JSON but how the value for the leaf or leaf list they are getting? from where and how it will get actual data in JSON from YANG?
2 Answers
- Convert yang to xml using pyang -f yin filename
- Convert xml file to json using any of the solutions below
Yang is a modeling language, not a data generation language.
What you are asking for is a simulator that will contain the same or pseudo logic as your application to generate data.