To convert toolbox XML into JSON, copy/paste the XML into the html source, press generate, and copy/paste the json out. Note toolbox "kind" is not exported and needs to be manually entered, see documentation