Max XML to JSON conversion

update 6/2014 – In the internet-sensors chatbot project, I am using a python script to convert xml to json: https://reactivemusic.net/?p=9834 – also the most recent version of Max 6.1.8 now includes JSON parsing in the javascript object

original post

notes:

Lest I completely forget. There is now an xml.parse object in max.

  • So I have figured out how to write xml files from an http request using jit.textfile
  • How to read an xml file into javascript
  • many ways of parsing xml in max using externals from sadam, jasch, and xml.parse – see weather report from mz
  • some – ways of converting xml to json using php (not quite), java, and node.js – but not yet in core javascript.

So the current approach is to try to find or write a javascript function to convert and xml string to a json object – or even to a json string. Or to find a generic xml/json converter which can be run in the background from the command line