aspose file tools*
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: 1055

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: 61229
    
  66

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: 61229
    
  66

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?