tags:

views:

792

answers:

8
+4  Q: 

What is JSON?

What is JSON?

+3  A: 

From Wikipedia: JSON (Javascript object notation)

The JSON format is often used for transmitting structured data over a network connection in a process called serialization. Its main application is in Ajax web application programming, where it serves as an alternative to the use of the XML format.

Galwegian
I was totally about to add this relevant quote to your post and you beat me to it! eerie!!
Jeff Atwood
Great minds? ;-)
Galwegian
A: 

JSON is Javascript Object Notation.

Vincent Ramdhanie
+1  A: 

http://www.json.org/

JTeagle
A: 

It is JavaScript Object Notation. You can use it to send data back and forward. It is often recommended since there is not so much overhead, like the one you get with XML. This is why it has become more popular than XML with Ajax.

Take a look at this: http://en.wikipedia.org/wiki/JSON

vimpyboy
+27  A: 
Daok
Anyway, I do not get the point to do a war about it, I'll find the exact reference of the other website I found it once I finish the rush I have to complete at work. brb later... I let you edit the post if you feel that it's needed.
Daok
Thank you for adding the ref lines.
Michael Haren
A: 

How does one make it all the way to stackoverflow.com without the ability to use google? I don't mean to be overly critical of the question or anything, but sometimes, people ask the darndest things. :)

Chris
THe funniest is that someone added that question in his favorite ;) hihi
Daok
I never saw a minimum difficulty requirement for something to be on StackOverflow.
Gareth
Well considering the answer is almost a year old, I'd say I was probably a SO newbie at the time, but hey, thanks for commenting on a year old answer just for the purpose of being a dick. Really adds value to the community.
Chris
+1  A: 

The in-depth version seems to be well covered, maybe you're looking for the short-and-simplified version?

JSON is basically just a way to pass an array from one language to another.

It's used a lot for Ajax (amongst other things) because with Ajax you typically have a server-side language (PHP etc.) passing a set of results to a client-side language (javascript). Your javascript calls your PHP page with some parameters; your PHP page builds an array and echos it encodes it to JSON format; your javascript catches the JSON and decodes it back to an array to process.

There's more to it than that obviously (and for that reason I'm expecting a flurry of tear-streaked downvotes :) ), but that's all you need to get up and running with it.

JoeBloggs
A: 

In my opinion when one wants to access webservice of different service provider such as Twitter,facebook etc over HTTP.

Then one must create a url and request for connection .When connection established a large amount of data comes from requesting site .

Example

<7b226665 65644974 656d7322 3a5b7b22 63617465 676f7279 223a7b22 6e616d65 223a2254 72616e73 706f7274 6174696f 6e222c22 68656164 65725f69 636f6e22 3a225c2f 686f6d65 5c2f6164 6d696e5c 2f707562 6c69635f 68746d6c 5c2f7072 6f647563 74696f6e 2e6d6973 73696f6e 7a65726f 2e6f7267>

This DATA is too much difficult to understand and arbitary in nature so we have 2 option for the representation of arbitrary data structures either in JSON format or XML format .But disadvantage in XML , it is syntactically more complex and bigger in file size than JSON. So it is better to use JSON

raaz
What should that example represent? It is neither JSON nor XML. So if you wanted it to be example data, then it's pretty much worthless unless you give examples with JSON and/or XML. And since the data seems to be entirely unstructured both formats aren't particularly well suited to representing it.
Joachim Sauer
I know this example doesn't in either in JSON or XML.But it is prior to that when requesting server sends the raw unstructured data.It is the responsibility of programmer Who wants to parse the unstructured data either in JSON or XML.And as previous posts already have given sample example of JSON and XML So I dont think to repeat it..
raaz