json

Jackson – Convert Map to Json Example

In this tutorial we see how to convert Map to Json file by using Jackson Api. Let us have a look in to the below code example.

  NOTE : Please include the “jackson-all-1.8.2.jar” in class path to avoid errors. OUTPUT:  Check the E: drive ,  bank.json will be created and the content would […]

java-logo

What is Jar War and Ear files in Java

In this tutorial we see what is Jar , War and Ear files in Java enterprise development, and also see what is the difference and usage of these files. What is Jar ? How to Create Jar file ?

  In above jar command we are creating test.jar which have HelloWorld.class file. For more info […]

json

Jackson – Convert JSON to Java object Example

In this Jackson tutorial we will see how to do data binding between Java object and Json , In the below example we can see how to convert JSON to Java object  . Let us have a look in to code example. 1. Java bean – POJO class.

  2. Json file content.

2. […]

json

Jackson – Convert Java object to JSON

In this Jackson tutorial we will see how to do data binding between Java object and Json , In the below example we can see how to Convert Java object to JSON. Let us have a look in to code example.   1. Java bean – POJO class.

 2. Test program to convert Java to Json. […]

JAX-RS

JAX – RS Different Files Download Example In Jersey

In this tutorial we will learn how to develop JAX – RS Restful application to download different files. First we see how to download text file example . Text File download example ——————————————————————————————————————————– 1. Create Dynamic web project in Eclipse. 2. Write Java Resource classes.

  3. Configure the Jersey Servlet in web.xml

  4. Run […]