Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
129 lines (116 loc) · 3.9 KB

File metadata and controls

129 lines (116 loc) · 3.9 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JSON To Java</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="/assets/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
body {
padding-top: 40px;
padding-bottom: 40px;
background-color: #f5f5f5;
}
.form-horizontal {
max-width: 700px;
padding: 19px 29px 29px;
margin: 0 auto 20px;
background-color: #fff;
border: 1px solid #e5e5e5;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.form-horizontal .form-horizontal-heading,.form-horizontal .checkbox {
margin-bottom: 10px;
}
.form-horizontal input[type="text"],.form-horizontal input[type="password"] {
font-size: 16px;
height: auto;
margin-bottom: 15px;
padding: 7px 9px;
}
</style>
</head>
<body>
<div class="container">
<form class="form-horizontal" role="form" action="jsontojava">
<a class="" href="https://github.com/jonfhancock/JsonToJava"><img style="position:absolute ; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
<h2 class="form-horizontal-heading">JSON To Java</h2>
<p>JSON To Java as a Service (JTJaaS) is intended to lighten the
burden of java developers who need to create POJOs to parallel a
JSON API.</p>
<div class="form-group">
<label for="inputUrl" class="col-lg-3 control-label">Url</label>
<div class="col-lg-9">
<input type="text" class="form-control" id="inputUrl" name="url" placeholder="http://example.com/folder.json">
</div>
</div>
<div class="form-group">
<label for="inputPackage" class="col-lg-3 control-label">Package</label>
<div class="col-lg-9">
<input type="text" class="form-control" id="inputPackage" name="package" placeholder="com.example.api.model">
</div>
</div>
<div class="form-group">
<label for="inputClass" class="col-lg-3 control-label">Root class name</label>
<div class="col-lg-5">
<input type="text" class="form-control" id="inputClass" name="class" placeholder="Folder">
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-3 col-lg-9">
<div class="checkbox">
<label>
<input type="checkbox" name="options" value="PARCELABLE"> Implement Parcelable
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-3 col-lg-9">
<div class="checkbox">
<label>
<input type="checkbox" name="options" value="GSON"> Include Gson Annotations
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-3 col-lg-9">
<div class="checkbox">
<label>
<input type="checkbox" name="options" value="TO_STRING"> Override toString()
</label>
</div>
</div>
</div>
<div class="form-group">
<div class="col-lg-offset-3 col-lg-9">
<button type="submit" class="btn btn-large btn-primary">Download zip</button>
</div>
</div>
</form>
</div>
<!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="/assets/js/jquery.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script>
$( document ).ready(function() {
$('#generate').submit (function() { return formValidated(); });
});
function formValidated(){
return $("input[name=url]").val().length > 0 && $("input[name=package]").val().length > 0 && $("input[name=class]").val().length > 0;
}
</script>
</body>
</html>
Morty Proxy This is a proxified and sanitized view of the page, visit original site.