O'Reilly Forums: What Is Json? - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

What Is Json?

#1 User is offline   mrclks 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: 25-June 09

Posted 17 August 2009 - 11:23 PM

Hi,
JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.
0

#2 Guest_eugie17_*

  • Group: Guests

Posted 09 September 2009 - 04:06 AM

thanks for these info but why is each language making new notation why not just use xml
0

#3 User is offline   Robin Nixon 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 113
  • Joined: 26-June 09
  • Gender:Male
  • Location:UK

Posted 12 September 2009 - 03:33 AM

QUOTE (eugie17 @ Sep 9 2009, 04:06 AM) <{POST_SNAPBACK}>
thanks for these info but why is each language making new notation why not just use xml


I believe the justification for JSON is that because it is a subset of JavaScript's object literal notation you can recreate an object from JSON with a single eval() statement. With XML you have to parse all the tags. Personally I prefer JSON for Ajax as I am interfacing directly with JavaScript, but XML for most other data.

0

#4 User is offline   debrah.h48 

  • New Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 28-April 10

Posted 28 April 2010 - 09:28 PM

well from reading that little passage, by the looks of it, its another way to use javascript on your site and not have to worry about people having it turned off since doesn't require javascrpt tags to actually run it.

Also by looking at some other sites it make programing in javascript quicker and more effective.

havn't found any real scripts on the met myself. Ubt if I were to conclude that json is a server side coding for large amounts of info. But i think its a water down version of ajx and xml as well.
0

#5 User is offline   debrah.h48 

  • New Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 28-April 10

Posted 12 May 2010 - 09:36 PM

I think it just parses objects from different web languages into a string, and when you include the JSON libraries for whatever language you're using, you can take that string and make it an object of whatever type you need.

I came across it a while ago, but I never ended up using it, because I never get that far into making anything. I'll probably look into it farther now, though, because you reminded me of it
0

#6 User is offline   erosamples 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 24-October 10

Posted 24 October 2010 - 06:33 AM

I think you may simply explain JSON as an XML with reduced code - used mostly for transferring data.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users