Skip to main content

Source code file content

Revision: 30e3164c04896a8323ce29fd867c69b19f7ac687

Updating 1.0.4 version for download
» Project Revision History

» Checkout URL

web / www / download.html

Size: 8999 bytes, 1 line
<!DOCTYPE html>
<!--
 Generated by Apache Maven Doxia at Nov 19, 2013
 Rendered using Maven Reflow Skin 1.0.0 (http://andriusvelykis.github.com/reflow-maven-skin)
-->
<html  xml:lang="en" lang="en">

	<head>
		<meta charset="UTF-8" />
		<title>JSON Processing - Dependencies</title>
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta name="description" content="" />
		<meta http-equiv="content-language" content="en" />
 
		<link href="//netdna.bootstrapcdn.com/bootswatch/2.2.2/cosmo/bootstrap.min.css" rel="stylesheet" />
		<link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-responsive.min.css" rel="stylesheet" />
		<link href="https://jsonp.java.net/css/bootswatch.css" rel="stylesheet" />
		<link href="https://jsonp.java.net/css/reflow-skin.css" rel="stylesheet" />
		
		<link href="//yandex.st/highlightjs/7.3/styles/solarized_dark.min.css" rel="stylesheet" />
		
		<link href="https://jsonp.java.net/css/lightbox.css" rel="stylesheet" />
		
		<link href="https://jsonp.java.net/css/site.css" rel="stylesheet" />
		<link href="https://jsonp.java.net/css/print.css" rel="stylesheet" media="print" />
		
		<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
		<!--[if lt IE 9]>
			<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
		<![endif]-->

	</head>

	<body class="page-download project-site" data-spy="scroll" data-offset="60" data-target="#toc-scroll-target">

		<div class="navbar navbar-fixed-top">
			<div class="navbar-inner">
				<div class="container">
					<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</a>
					<a class="brand" href="index.html"><span class="color-highlight">JSON Processing</span></a>
					<div class="nav-collapse">
						<ul class="nav pull-right">
							<li class="dropdown">
								<a href="#" class="dropdown-toggle" data-toggle="dropdown">Documentation <b class="caret"></b></a>
								<ul class="dropdown-menu">
									<li><a href="http://docs.oracle.com/javaee/7/tutorial/doc/jsonp.htm" title="Tutorial" class="externalLink">Tutorial </a></li>
									<li><a href="https://json-processing-spec.java.net/nonav/releases/1.0/fcs/javadocs/index.html" title="JSON Processing API" class="externalLink">JSON Processing API </a></li>
								</ul>
							</li>
						</ul>
					</div><!--/.nav-collapse -->
				</div>
			</div>
		</div>
		
	<div class="container">
	
	<!-- Masthead
	================================================== -->
	<header class="jumbotron subhead">
		<div class="row" id="banner">
			<div class="span12">
				<div class="pull-left">
					<a href="index.html" id="bannerLeft"><h1><span class="color-highlight">JSON Processing</span></h1></a>
					<p class="lead">JSR 353: Java API for JSON Processing - Reference Implementation</p>
				</div>
				<div class="pull-right">
				</div>
			</div>
		</div>
	</header>

	<div class="main-body">
	<div class="row">
		<div class="span12">
			<div class="body-content">
<div class="section"> 
 <div class="page-header">
  <h2 id="Dependencies">Dependencies</h2>
 </div> 
 <p>JSON Processing is built, assembled and installed using Maven. It is deployed to the Maven Central repository.</p> 
 <p>Developers using maven are likely to find it easier to include and manage dependencies of their applications. This document will explain to both maven and non-maven developers how to use JSON Processing in their applications. </p> 
 <p>In general, if youre not using Maven, youd need to download dependencies (jar files) directly from the Maven repository and include it in the classpath.</p> 
 <div class="section"> 
  <h3 id="Compiling">Compiling</h3> 
  <p>If you want to compile an application with JSON Processing API, declare a dependency on json-api in maven project. Note that the api dependency doesnt allow you to run the application.</p> 
  <div class="source"> 
   <pre>&lt;dependency&gt;
    &lt;groupId&gt;javax.json&lt;/groupId&gt;
    &lt;artifactId&gt;javax.json-api&lt;/artifactId&gt;
    &lt;version&gt;1.0&lt;/version&gt;
&lt;/dependency&gt;
</pre> 
  </div> 
  <p>For non-maven projects, the <a class="externalLink" href="http://search.maven.org/remotecontent?filepath=javax/json/javax.json-api/1.0/javax.json-api-1.0.jar">JSON Processing API jar</a> can be downloaded and included in the classpath for compiling the applications.</p> 
 </div> 
 <div class="section"> 
  <h3 id="Running">Running</h3> 
  <p>If you want to run an application with JSON Processing API, declare a dependency on json-api implementation in your maven project.</p> 
  <div class="source"> 
   <pre>&lt;dependency&gt;
    &lt;groupId&gt;org.glassfish&lt;/groupId&gt;
    &lt;artifactId&gt;javax.json&lt;/artifactId&gt;
    &lt;version&gt;1.0.4&lt;/version&gt;
&lt;/dependency&gt;
</pre> 
  </div> 
  <p>For non-maven projects, the <a class="externalLink" href="http://search.maven.org/remotecontent?filepath=org/glassfish/javax.json/1.0.4/javax.json-1.0.4.jar">JSON Processing RI jar</a> can be downloaded and included in the classpath for running the applications.</p> 
 </div> 
 <div class="section"> 
  <h3 id="Running_on_Glassfish">Running on Glassfish</h3> 
  <p>GlassFish 4.0 already includes JSON implementation. So for an web application, there is no need to include implementation jar in a war. So declare an json-api dependency with provided scope during the development of the application.</p> 
  <div class="source"> 
   <pre>&lt;dependency&gt;
    &lt;groupId&gt;javax.json&lt;/groupId&gt;
    &lt;artifactId&gt;javax.json-api&lt;/artifactId&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
    &lt;version&gt;1.0&lt;/version&gt;
&lt;/dependency&gt;
</pre> 
  </div> 
 </div> 
</div>
			</div>
		</div>
	</div>
	</div>

	</div><!-- /container -->
	
	<!-- Footer
	================================================== -->
	<footer class="well">
		<div class="container">
			<div class="row">
				<div class="span3 bottom-nav">
					<ul class="nav nav-list">
						<li class="nav-header">Main</li>
						<li>
							<a href="index.html" title="Home">Home </a>
						</li>
						<li>
							<a href="license.html" title="License">License </a>
						</li>
						<li class="nav-header">Download</li>
						<li class="active">
							<a href="#" title="Download">Download </a>
						</li>
					</ul>
				</div>
				<div class="span3 bottom-nav">
					<ul class="nav nav-list">
						<li class="nav-header">Contribute</li>
						<li>
							<a href="contribute.html" title="Contribute">Contribute </a>
						</li>
						<li>
							<a href="mailing.html" title="Mailing Lists">Mailing Lists </a>
						</li>
					</ul>
				</div>
				<div class="span3 bottom-nav">
					<ul class="nav nav-list">
						<li class="nav-header">Project Info</li>
						<li>
							<a href="scm.html" title="Source Control">Source Control </a>
						</li>
						<li>
							<a href="https://java.net/jira/browse/JSONP/" title="Issue Tracking" class="externalLink">Issue Tracking </a>
						</li>
						<li>
							<a href="mailing.html" title="Mailing Lists">Mailing Lists </a>
						</li>
						<li>
							<a href="team-list.html" title="Project Team">Project Team </a>
						</li>
					</ul>
				</div>
				<div class="span3 bottom-description">
					<a href="https://glassfish.java.net" style="border:0; display:block"><img src="images/glassfish_logo.png" width="200" /></a>
				</div>
			</div>
		</div>
	</footer>
		
	<div class="container subfooter">
		<div class="row">
			<div class="span12">
				<p class="pull-right"><a href="#">Back to top</a></p>
				<p class="copyright">Copyright &copy;2013 <a href="http://oracle.com">Oracle Corporation</a>. All Rights Reserved.</p>
			</div>
		</div>
	</div>

	<!-- Le javascript
	================================================== -->
	<!-- Placed at the end of the document so the pages load faster -->

	<!-- Fallback jQuery loading from Google CDN:
	     http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go -->
	<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
	<script type="text/javascript">
		if (typeof jQuery == 'undefined')
		{
			document.write(unescape("%3Cscript src='https://jsonp.java.net/js/jquery-1.8.3.min.js' type='text/javascript'%3E%3C/script%3E"));
		}
	</script>
	
	<script src="//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/js/bootstrap.min.js"></script>
	<script src="https://jsonp.java.net/js/lightbox.js"></script>
	<script src="https://jsonp.java.net/js/jquery.smooth-scroll.min.js"></script>
	<!-- back button support for smooth scroll -->
	<script src="https://jsonp.java.net/js/jquery.ba-bbq.min.js"></script>
	<script src="//yandex.st/highlightjs/7.3/highlight.min.js"></script>

	<script src="https://jsonp.java.net/js/reflow-skin.js"></script>
	
	</body>
</html>
 
 
Close
loading
Please Confirm
Close