???????JSON
????JSON(JavaScript Object Notation) ????????????????????????? JSON????????????????????????????Щ?????JSON????????????????????????????????д?????????????????????ɡ?
????JSON??XML????????????sanpintian??CSDN???????
????1????????JSON??XML???????ν???????£???????????????????淶????????????????????
????2??????????XML?????к?????????JSON?????У????????XML???????JSON??????
????3??????????XML?з?????????????Dom4j??JDom???JSON???json.org????????????JSON??????????XML???????????????????????д??JSON??????????д??XML??????????
????4??????????XML???????????????????????????????JSON????????????0???????XML?????????????
????5?????ж??XML?????????????????JSON??????????????Ajax????????????δ???????????XML??λ??JSON?????Ajax?????Ajaj(Asynchronous Javascript and JSON)???
????????????
???????JSON??????????°???
????commons-beanutils.jar
????commons-logging.jar
????commons-lang.jar
????commons-collection.jar
????ezmorph.jar
????json-lib.jar

???????????
????Book???????

 

1  public class Book {
2     private String name;
3     private double price;
4
5     public String getName() {
6         return name;
7     }
8
9     public void setName(String name) {
10         this.name = name;
11     }
12
13     public double getPrice() {
14         return price;
15     }
16
17     public void setPrice(double price) {
18         this.price = price;
19     }
20
21     @Override
22     public String toString() {
23         return name+" "+price;
24     }
25 }