Can anyone briefly explain why JSON is important?
Moderator: General Moderators
-
scarface222
- Forum Contributor
- Posts: 354
- Joined: Thu Mar 26, 2009 8:16 pm
Can anyone briefly explain why JSON is important?
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.
- 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?
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)
Re: Can anyone briefly explain why JSON is important?
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.
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
-
scarface222
- Forum Contributor
- Posts: 354
- Joined: Thu Mar 26, 2009 8:16 pm