Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] My first JSON object
- Date: Sun, 04 Jul 2010 15:34:01 +0200
- From: Fredric Fredricson <Fredric.Fredricson@example.com>
- Subject: Re: [tlug] My first JSON object
- References: <4C1C3348.90506@example.com> <20100619044940.GA18726@example.com> <4C23481B.1090904@example.com> <20100625080744.62b6b298.gstewart@example.com> <32853.61.193.161.149.1277458953.squirrel@example.com> <4C25510C.3090002@example.com> <20100626083312.3f29d97d.gstewart@example.com> <4C26F2F4.80600@example.com> <20100627173336.e2533f06.gstewart@example.com> <4C300FEB.30405@example.com>
- User-agent: Thunderbird 1.5.0.12 (X11/20071019)
Dave M G wrote:For the jQuery.ajax (a.k.a. $.ajax) method you can specify dataType as "json". This will make jQuery parse the reponse as JSON. If you are serious about jQuery you need to learn to find your way around jquery.com and specifically the documentation. The learning curve is pretty steep but not that high (at least not if you know the http basics). You can find examples there too and some forums.Darren, Godwin, Simon, Fredric, TLUG, Thank you for the advice.I'm sold on the idea that I should use JQuery to handle all the fine print of JSON handling. However, I'm just a little fuzzy on how to use JQuery for this.Most of the examples I've looked at on the web use an additional Javascript file called json2.js, available from json.org. This doesn't seem to be a plug in for JQuery, but a separate (?) set of code for working with JSON, but I don't quite get what it does.Does JQuery not natively support JSON...?As far as I understand the idea behind JSON is that you send objects in form of javascript code (a subset of javascript) that, when evaluated, can be used as an object and dealt with appropriately. I have tried this technique a couple of times and while it is probably very efficient it is also reputed to have some security flaws.I decided to go for xml and jQuery can be used as a powerful xml parser too (the same way it parses http). Parsing xml is probably less efficient but we are talking user interfaces (browsers) so a few milliseconds will not matter. I have other reasons for using xml but I think I would use xml regardless of those. I am however sure others have other preferences./Fredricbegin:vcard fn:Fredric Fredricson n:Fredricson;Fredric org:Ln4 Solutions AB email;internet:Fredric.Fredricson@example.com title:CTO tel;home:+46 8 91 64 39 tel;cell:+46 70 677 58 48 version:2.1 end:vcard
- Follow-Ups:
- Re: [tlug] My first JSON object
- From: Godwin Stewart
- References:
- Re: [tlug] My first JSON object
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] My first JSON object
- Next by Date: Re: [tlug] My first JSON object
- Previous by thread: Re: [tlug] My first JSON object
- Next by thread: Re: [tlug] My first JSON object
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links