update: Jay Williams has flushed this out to be a lot more useful. Check out his rendition here. …so I wrote (what I think is a) clever little function (well, two functions) to take a complex php variable and turn it into a json-ized string, ready to be passed back to javascript. It works on […]