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
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply 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: 970

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: 56162
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56162
    
  13

And may I add that txt is a horrid variable name.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: is the below mention code json or javascript?
 
Similar Threads
HashMap and For loop issue
How to copy a value to the same page?
In struts2 delete is not Working
Struts2Jquery deleting row in a grid
Query of Oracle to SQL Server