in reply to Re^8: Are there any issues with JSON
in thread Are there any issues with JSON
I don't have time to go dig up examples from where I've used JSON but I wanted to tell you what I find to be the greatest virtue of JSON: cross-platform objects. Oh yeah, and the main reason people use it is that it's much less verbose than XML (less bandwidth).
If you pass JSON into javascript, it's trivial to inflate the object, add a prototype and "bang! it's an object with behaviors". Typically you would have methods that display, edit, whatever that data. When you're done, you pass the JSON core (data) back to your Perl server. On the Perl side, you can easily inflate the JSON to a hash and bless it into a class that provides persistence (or whatever). Well, anyhow, that's what I find awesome about JSON.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: Are there any issues with JSON
by taint (Chaplain) on Jun 06, 2014 at 02:50 UTC | |
by Anonymous Monk on Jun 06, 2014 at 03:05 UTC | |
by Anonymous Monk on Jun 06, 2014 at 05:03 UTC | |
by Anonymous Monk on Jun 06, 2014 at 05:22 UTC | |
by Anonymous Monk on Jun 06, 2014 at 06:43 UTC |