This is great, I'm happy to see you working on it more. I'm also looking to working with more data sources. I've played around with it a little, and am getting a crash running on Mac OS X 10.6.8/64-bit. I open the rest-json-help.pd and add a [json-decode] to the bottom of the [rest-json] object. When I click on a URL, it crashes. I tried to debug it a little but no luck, basically its crashing on the first line of output_json():
enum json_type outer_type = json_object_get_type(jobj);
I also posted another pull request, this one is has a script for embedding the needed libraries when building on Mac OS X.
.hc
On Jan 27, 2012, at 3:58 PM, Thomas Mayer wrote:
Hello,
I have just uploaded new packages for Windows and Debian (i386) of PuREST JSON.
PuREST JSON is a library for connecting Pd to HTTP services and encoding and decoding JSON data.
The library can issue GET, POST, PUT and DELETE statements, so consumation of RESTful services is possible, e.g. CouchDB.
https://github.com/residuum/PuRestJson/downloads
I have written compilation instructions in the wiki, and am currently trying to cross-compile for Windows on Debian. The next logical step is trying to get cross-compilation for Mac OS X working, any pointers on how to accomplish that?
Have fun, {"name": "Thomas"} -- "We left all that stuff out. If there's an error, we have this routine called panic, and when it is called, the machine crashes, and you holler down the hall, 'Hey, reboot it.'" (Dennis Ritchie) http://www.residuum.org/
Pd-announce mailing list Pd-announce@iem.at http://lists.puredata.info/listinfo/pd-announce
"It is convenient to imagine a power beyond us because that means we don't have to examine our own lives.", from "The Idols of Environmentalism", by Curtis White