Any idea if there is a portable java method that can take json as input and
output java objects? Or some example code that maybe isn't as generic, but
with some case-specific coding could do the same?

The use case is for writing unit tests. Every new listener I add tests for
I always create helper methods to fill out the java objects, write to
mdsal, do some verifications, write some more and so on. It would be much
more readable to simply input a json into this new helper method and out
pop a java object that can be written to mdsal.

I imagine the restconf project has something similar since it parses
incoming json. Or maybe it is using some libraries to do the same?

Thanks, Sam
_______________________________________________
Discuss mailing list
[email protected]
https://lists.opendaylight.org/mailman/listinfo/discuss

Reply via email to