|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
json type tag ?Hi there !
I have implemented a json parser in liboscit and I think it can be useful to send json data through osc since this enables sending complex structures such as dictionaries. Sending json through osc will not be the norm since it takes cpu and bandwidth. But it has it's place especially during initialization. Anyway, what do you think of using "j" as tag for this format ? Thanks for your opinions. Gaspard _______________________________________________ OSC_dev mailing list OSC_dev@... http://lists.create.ucsb.edu/mailman/listinfo/osc_dev |
|
|
Re: json type tag ?As a followup, I noticed that there is no type tag for hashes
(dictionaries). What about 'h' ? Gaspard On Mon, Mar 30, 2009 at 9:23 PM, Gaspard Bucher <gaspard@...> wrote: > Hi there ! > > I have implemented a json parser in liboscit and I think it can be > useful to send json data through osc since this enables sending > complex structures such as dictionaries. Sending json through osc will > not be the norm since it takes cpu and bandwidth. But it has it's > place especially during initialization. > > Anyway, what do you think of using "j" as tag for this format ? > > Thanks for your opinions. > > Gaspard > OSC_dev mailing list OSC_dev@... http://lists.create.ucsb.edu/mailman/listinfo/osc_dev |
|
|
|
|
|
|
|
|
Re: json type tag ?Of course, the json representation of anything can be stored in a
string, even a hash like: {"name":"Joe", "age":32} or a midi message or whatever. But when you receive such a thing, it's nice to know it's not the same as "This is my friend Joe. He is 32 years old." because you need very different parsers to get Joe's age :-). G. On Mon, Mar 30, 2009 at 10:06 PM, <salsaman@...> wrote: > On Mon, March 30, 2009 21:30, Gaspard Bucher wrote: >> As a followup, I noticed that there is no type tag for hashes >> (dictionaries). What about 'h' ? >> >> Gaspard > > How does a hash differ from a string ? > > Salsaman. > > > _______________________________________________ > OSC_dev mailing list > OSC_dev@... > http://lists.create.ucsb.edu/mailman/listinfo/osc_dev > OSC_dev mailing list OSC_dev@... http://lists.create.ucsb.edu/mailman/listinfo/osc_dev |
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |