1:
JSON (Javascriptobject notation) is a simple data format that is lighter than XML. JSON is the native format of JavaScript, which means that processing JSON data in JavaScript does not require any special APIs or toolkits.
The rule of JSON is simple: an object is an unordered set of ' name/value pairs '. An object begins with "{" (opening parenthesis), and "}" (closing parenthesis) ends. Each "name" is followed by a ":" (a colon), and the ' name/value ' pair is separated by a ', ' (comma).
JSON assigns a value with a colon rather than an equal sign. Each assignment statement is separated by a comma. The entire object is encapsulated in curly braces. Nested data can be graded with curly braces.
The data stored in the object description can be a string, a number, or a Boolean value. Object descriptions can also store functions, which is the object's method.
<span style= "FONT-SIZE:18PX;" >{"Person": {
"name": "Andy Budd",
"website": "http://andybudd.com/",
"email": "andy@clearleft.com"
}
} </span>
JSON is just a text string. It is stored in the ResponseText property
In order to read the JSON data stored in the ResponseText attribute, you need to base the Eval statement on JavaScript. The function eval will take a string as its argument. The string is then executed as JavaScript code. Because the string of JSON is composed of JavaScript code, it is itself executable
2: Cases
<%@ page language= "java" pageencoding= "UTF-8"%>