-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.html
86 lines (71 loc) · 2.39 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="lib/highlight/styles/vs.css">
<link rel="stylesheet" href="lib/linedtextarea/jquery-linedtextarea.css">
<link rel="stylesheet" href="style.css">
<body>
<div class="wrapper ">
<div id="source-type" style="display: none">json</div>
<header class="section">
<h1>json to java </h1>
<p>help you generate javabean(pojo) by json</p>
<p>usage:input json in left box,then you will see result in rigth box</p>
</header>
<div class="section main clearfix">
<h2>config</h2>
<div class="config">
<p><label>package:<input id="package-input" value="com.duowan.tool"/></label></p>
<p><label>class:<input id="class-input" value="example"/></label></p>
</div>
<div class="src-div">
<h2 class="not-margin-bottom"><label>Input Json Here:</label></h2>
<div class="error-tip hide"></div>
<div class="input-box">
<textarea id="input-textarea" ></textarea>
</div>
</div>
<div class="dest-div">
<h2 class="not-margin-bottom"><label>The Result(JavaBean):</label></h2>
<div class="result-list">
</div>
</div>
</div>
<div style="display: none" id="getset-templ">
public void setA(T a) {
this.a = a;
}
public T getA() {
return a;
}
</div>
<div style="display: none" id="input-example">
{
"id": 1,
"username": "john_smith",
"email": "[email protected]",
"name": "John Smith",
"state": "active",
"created_at": "2012-05-23T08:00:58Z",
"access_level": 40,
"person":{"name":"test","age":1,"from":{"country":"china"}},
"about":["a","b"]
}
</div>
<footer class="section">
Designed by <a href="http://blog.csdn.net/lizeyang">lizeyang</a></p>
</footer>
</div>
</body>
<script src="lib/jquery.min.js"></script>
<script src="lib/jsonlint.js"></script>
<script src="lib/linedtextarea/jquery-linedtextarea.js"></script>
<script src="lib/highlight/highlight.pack.js"></script>
<script src="lib/ZeroClipboard/ZeroClipboard.js"></script>
<script src="tool.js"></script>
<script src="to-bean.js"></script>
</html>