wood burning stoves
The moose likes HTML, CSS and JavaScript and the fly likes is the below mention code json or javascript? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "is the below mention code json or javascript?" Watch "is the below mention code json or javascript?" New topic
Author

is the below mention code json or javascript?

Vishal Hegde
Ranch Hand

Joined: Aug 01, 2009
Posts: 1067

Dear Members,

Is the below mentioned code a json or javascript



http://www.lifesbizzare.blogspot.com || OCJP:81%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

It's JavaScript. JSON is not code, it is an interchange format. Calling JSON code is a lot like calling XML "code".

JSON is based upon JavaScript object literal format, so the object literal part of that code does look a lot like JSON, but it's code, not data.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63208
    
  69

And may I add that txt is a horrid variable name.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is the below mention code json or javascript?
 
jQuery in Action, 3rd edition