convert library.xml to json