First cut toJSON API to try out the Yang generator and verify