Rest payload construction from Yang model

Hi,

I’m new to confD. We have a requirement to create restconf payloads from a yang model. Do we need to write some java code to achieve this?
Can you please share your inputs or doc reference which will help?

Thanks in advance!

Does you usecase require parsing of the YANG file(s)?

If you need to parse YANG data models (similarly like XML), you can use pyang and write pyang plugin that suites your needs. For this you need to write Python code.
If you need to parse YANG data model in Java, try to search for some java YANG parser.
You can also use pyang to convert YANG to XML and then parse it in Java.