Can anyone briefly explain why JSON is important?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
scarface222
Forum Contributor
Posts: 354
Joined: Thu Mar 26, 2009 8:16 pm

Can anyone briefly explain why JSON is important?

Post by scarface222 »

Hey guys I have searched around and I really cannot find a good explanation. I have seen JSON php files, and JSON javascript files, and I remember a member of this forum telling me it was important to learn. I am just wondering if anyone can briefly explain the importance and purpose or link me to some resources that speak in layman's terms. Thanks in advance.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Can anyone briefly explain why JSON is important?

Post by Christopher »

It is a shorthand notation to define objects and other data in Javascript, and is therefore handy in code and to transfer between systems. For example, Ajax calls can send and receive JSON instead of XML.
(#10850)
M2tM
Forum Commoner
Posts: 41
Joined: Sat Feb 27, 2010 12:35 pm

Re: Can anyone briefly explain why JSON is important?

Post by M2tM »

The most important difference between JSON and XML in terms of sending information is that JSON is a lot more compact than XML which is very verbose.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Can anyone briefly explain why JSON is important?

Post by Christopher »

(#10850)
scarface222
Forum Contributor
Posts: 354
Joined: Thu Mar 26, 2009 8:16 pm

Re: Can anyone briefly explain why JSON is important?

Post by scarface222 »

thanks guys
Post Reply