Java??JSON??????????????
???????????? ???????[ 2014/6/12 10:44:23 ] ????????Java ???????
???????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 }
|
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11