Maybe PuRestJson fits the bill? I checked this out a while ago on CHIP using vanilla. I had some issues that were eventually fixed, but I ended up doing the bulk of the work in python then passing some control data over to PD via OSC. I was using it to load data from EchoNest into a PD patch. But it probably will do what you want.
https://github.com/residuum/PuRestJson https://github.com/residuum/PuRestJson
Peter
Thanks everyone, this is all very helpful.
"text": Great. Can use search, works fine.
"coll": My understanding is that 'coll' is NOT a part of vanilla, but rather a part of 'cyclone', not maintained by Miller. Since I'm looking for a pure Vanilla solution, this is not a good choice. right?
"struct": I understand that you can invent complex data structures with this object. My 2 questions are: -is there an easy/out-of-the-vanilla-box way to go from text files to struct? -i don't see how struct implements the "key" of my desired key/value pair. is that the name of the pd subpatch that has the struct object in it?
Thanks also for the hot PuRestJson tip, will look into that for future adventures.
ali
On Tue, Jul 18, 2017 at 2:54 PM, Peter Nyboer p@nbor.us wrote:
Maybe PuRestJson fits the bill? I checked this out a while ago on CHIP using vanilla. I had some issues that were eventually fixed, but I ended up doing the bulk of the work in python then passing some control data over to PD via OSC. I was using it to load data from EchoNest into a PD patch. But it probably will do what you want.
https://github.com/residuum/PuRestJson
Peter
2017-07-18 17:45 GMT-03:00 Ali Momeni batchku@gmail.com:
My understanding is that 'coll' is NOT a part of vanilla, but rather a part of 'cyclone', not maintained by Miller. Since I'm looking for a pure Vanilla solution, this is not a good choice. right?
Yep, [coll] is an external from cyclone, not part of vanilla. It is not maintained by Miller, but this doesn't mean that it is not being maintained, as cyclone is in active development and maintenance. But it is not clear why you need a vanilla solution, if it is a matter of an external being maintained or not. Usually this restriction comes from a matter of doing something with libpd, sometimes it is a case of personal preference...
As I understand, [coll] and [text] may have different features, though I wouldn't know about them, like I just asked, as well as I asked if there could be any benefit in also cloning max's [dict] object.
cheers
Thanks for clarifying Alexandre.
I would like a pure Vanilla solution because I need to run my application on a raspberry pi, an iOS device, and Android, and in the browser. I'll make do with the 'text' object for now unless there is an obvious alternative (or a way to use 'struct' with 'keys').
-ali
On Tue, Jul 18, 2017 at 5:31 PM, Alexandre Torres Porres porres@gmail.com wrote:
2017-07-18 17:45 GMT-03:00 Ali Momeni batchku@gmail.com:
My understanding is that 'coll' is NOT a part of vanilla, but rather a part of 'cyclone', not maintained by Miller. Since I'm looking for a pure Vanilla solution, this is not a good choice. right?
Yep, [coll] is an external from cyclone, not part of vanilla. It is not maintained by Miller, but this doesn't mean that it is not being maintained, as cyclone is in active development and maintenance. But it is not clear why you need a vanilla solution, if it is a matter of an external being maintained or not. Usually this restriction comes from a matter of doing something with libpd, sometimes it is a case of personal preference...
As I understand, [coll] and [text] may have different features, though I wouldn't know about them, like I just asked, as well as I asked if there could be any benefit in also cloning max's [dict] object.
cheers