JAVA EXAMPLE PROGRAMS

JAVA EXAMPLE PROGRAMS

Publish Your Article Here

Java API for JSON Processing - javax.json package

JavaScript Object Notation (JSON) is text-based data exchange format derived from Javascript, and is primarily used for transmitting structured data over the network.

JSR 353 addresses the standard Java API for JSON processing and shipped as part of JEE 7. JEE provides 2 different types of API for JSON processing.

1) Object Model API
2) Streaming API

In this article we have given examples on javax.json package to play with Json data.

Java API for JSON processing examples

  1. How to read Json data using JsonReader?
  2. How to read Json array data using JsonArray?
  3. How to create Json Object using Object Model?
  4. How to create Json Array using Object Model?
  5. How to create Json Object using Streaming Model API?
  6. How to create Json Array using Streaming Model API?
Knowledge Centre
What is daemon thread?
Daemon thread is a low priority thread. It runs intermittently in the back ground, and takes care of the garbage collection operation for the java runtime system. By calling setDaemon() method is used to create a daemon thread.
Famous Quotations
It is easier to fight for one’s principles than to live up to them.
-- Alfred Adler

About Author

I'm Nataraja Gootooru, programmer by profession and passionate about technologies. All examples given here are as simple as possible to help beginners. The source code is compiled and tested in my dev environment.

If you come across any mistakes or bugs, please email me to [email protected] or you can comment on the page.

Most Visited Pages

Other Interesting Sites

Reference: Java™ Platform Standard Ed. 7 - API Specification | Java is registered trademark of Oracle.
Privacy Policy | Copyright © 2017 by Nataraja Gootooru. All Rights Reserved.