-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
261 lines (243 loc) · 12.1 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!doctype html>
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><html lang="en" class="no-js"> <![endif]-->
<html lang="en">
<head>
<title>JSON Binding (JSON-B) - Home</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="Java API for JSON Binding (JSON-B) Home">
<meta name="author" content="Ehsan Zaery Moghaddam, Dmitry Kornilov">
<link rel="apple-touch-icon" sizes="57x57" href="/images/favico/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/favico/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/favico/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="/images/favico/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="/images/favico/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="/images/favico/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="/images/favico/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="/images/favico/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="/images/favico/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="/images/favico/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="/images/favico/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="/images/favico/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="/images/favico/favicon-16x16.png">
<link rel="manifest" href="/images/favico/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="/images/favico/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- Bootstrap CSS -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Font Awesome CSS -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-T8Gy5hrqNKT+hzMclPo118YTQO6cYprQmhrYwIiQ/3axmI1hQomh7Ud2hPOy8SP1" crossorigin="anonymous">
<!-- Highlight JS-->
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/styles/default.min.css">
<link rel="stylesheet" type="text/css" href="styles/hjs-screen-theme.css" media="screen">
<link href="style.css" rel="stylesheet"/>
<!--[if IE 8]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
<!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<!-- Start Navigation bar-->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">
{ "JSON" : "B" }
</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Documentation <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="getting-started.html">Getting started</a></li>
<li><a href="users-guide.html">Users guide</a></li>
<li><a href="javadocs.html">JavaDocs</a></li>
</ul>
</li>
<li>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Contribute <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="mailing-lists.html">Mailing Lists</a></li>
<li><a href="https://www.jcp.org/en/jsr/detail?id=367" target="_blank">JSR 367 Page</a></li>
<li><a href="https://java.net/jira/browse/JSONB_SPEC/?selectedTab=com.atlassian.jira.jira-projects-plugin:summary-panel" target="_blank">Issue tracking</a></li>
<li><a href="contributors.html">Contributors</a></li>
</ul>
</li>
<li><a href="download.html">Download</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!-- End Navigation bar-->
<!-- Start JSON-B Logo and Main Title -->
<div class="container-fluid" id="main-section">
<div class="row">
<div class="col-lg-12 col-md-12 text-center">
<img src="jsonb-logo.png"/>
<br/>
<h2 class="text-center" style="">
Java API for JSON Binding
</h2>
<h3 class="text-center">
<span>JSR 367 Specification</span>
</h3>
<a href="getting-started.html" class="btn btn-primary btn-warning">Getting Started <span class="glyphicon glyphicon-map-marker"></span></a>
<a href="#" class="btn btn-primary btn-warning">Download <span class="glyphicon glyphicon-cloud-download"></span></a>
</div>
</div>
</div>
<!-- End JSON-B Logo and Main Title -->
<!-- Start What is JSON-B -->
<div class="container" id="whatis-jsonb-section">
<div class="row">
<div class="col-lg-12 text-center">
<h3>What is <strong>JSON-B?</strong></h3>
<p class="col-lg-12 text-center">
JSON-B is a standard binding layer for converting Java objects to/from JSON messages. It
defines a default mapping algorithm for converting existing Java classes to JSON, while
enabling developers to customize the mapping process through the use of Java annotations.
</p>
</div>
</div>
</div>
<!-- End What is JSON-B -->
<!-- Start features section -->
<div class="container" id="jsonb-features-section">
<div class="row">
<div class="col-md-3 col-sm-6 text-center">
<div>
<i class="fa fa-eye icon-large"></i>
</div>
<div>
<h4>Consistent</h4>
<p>Consistent with JAXB (Java API for XML Binding) and other Java EE and SE APIs where appropriate</p>
</div>
</div>
<div class="col-md-3 col-sm-6 text-center">
<div>
<i class="fa fa-check-circle icon-large"></i>
</div>
<div>
<h4>Conventional</h4>
<p>Define default mapping of Java classes and instances to JSON document counterparts</p>
</div>
</div>
<div class="col-md-3 col-sm-6 text-center">
<div>
<i class="fa fa-gear icon-large"></i>
</div>
<div>
<h4>Customizable</h4>
<p>Allow customization of the default mapping definition</p>
</div>
</div>
<div class="col-md-3 col-sm-6 text-center">
<div>
<i class="fa fa-thumbs-up icon-large"></i>
</div>
<div>
<h4>Easy to Use</h4>
<p>Default use of the APIs should not require prior knowledge of the JSON document format and specification</p>
</div>
</div>
</div>
</div>
<!-- End features section -->
<div class="container">
<div class="row">
<div class="col-md-12">
<hr style="width: 500px;"/>
</div>
</div>
</div>
<!-- Start serialization sample setion -->
<div class="container" id="sample-section">
<div class="row">
<div class="col-md-12">
<h3 class="text-center">To serialize/deserialize a Java Object to/from JSON</h3>
<div class="row">
<div class="col-md-4">
<h4 class="text-center subtitles"><span>The Java Class</span></h4>
<pre><code class="java">public class Dog {
public String name;
public int age;
public boolean bitable;
}</code></pre>
</div>
<div class="col-md-4">
<h4 class="text-center subtitles"><span>JSON-B API calls</span></h4>
<pre><code class="java">public static void main(String[] args) {
// Create a dog instance
Dog dog = new Main.Dog();
dog.name = "Falco";
dog.age = 4;
dog.bitable = false;
// Create Jsonb and serialize
<b>Jsonb jsonb = JsonbBuilder.create();
String result = jsonb.toJson(dog);</b>
System.out.println(result);
// Deserialize back
<b>dog = jsonb.fromJson("{\"name\":\"Falco\",\"age\":4,\"bitable\":false}", Dog.class);</b>
}</code></pre>
</div>
<div class="col-md-4">
<h4 class="text-center subtitles"><span>The JSON representation</span></h4>
<pre><code class="json">{
"name": "Falco",
"age": 3,
"bitable": false
}</code></pre>
</div>
</div>
</div>
</div>
</div>
<!-- End serialization sample section -->
<div class="container">
<div class="row">
<div class="col-md-12">
<hr style="width: 500px;"/>
</div>
</div>
</div>
<!-- Start footer section-->
<div class="container-fluid" id="footer-section">
<div class="row">
<div class="col-lg-12">
<p>Copyright © 2016 <a href="https://www.oracle.com" target="_blank">Oracle</a> Corporation. All Rights Reserved.</p>
</div>
</div>
</div>
<!-- End footer section-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.nicescroll/3.6.8-fix/jquery.nicescroll.min.js"></script>
<script>
$(document).ready(
function() {
$("html").niceScroll({
scrollSpeed: 30,
smoothscroll: true,
mousescrollstep: 70
});
}
);
</script>
</body>
</html>