Pascal VOC (XML) to JSON?

I generated a dataset for object detection and it is in xml format. Is there a way to convert it to the json format the notebook uses? Or how can I use the xml’s instead?

I am new to python so any help is appreciated, and if there is further explanation needed please let me know.

Thank you!


For anyone needing it, there is a library you can use:

Or if you are just wanting pascal to json:


Thanks Zachary! I used labelImg to make my handcoded labels and then didn’t know what to do next. Very helpful :slight_smile: