Home » json

Tag Archives: json

JSON Example

In this article, we will explain JSON using examples. 1. What is JSON JSON is an acronym for JavaScript Object Notation. It supports data structures like objects and arrays, so, it is easy to write and read data from JSON. It is a language-independent data format. It supports almost every kind of language, framework, and library. 2. Why do we ...

Read More »

Python JSON Example

set python

Hello in this tutorial, we will understand how to parse, read, and write JSON in python programming. 1. Introduction JSON stands for Javascript Object Notation and is a popular format to represent structured data. It is the most popular exchange of data format between the application running on the server and the client. In python, JSON exists as a string ...

Read More »

Jackson Annotation Examples

This example is a deep dive into Jackson Annotations. It covers almost all the annotations with code examples. We will learn how to use the existing annotations, create our custom annotations and finally how to completely disable Jackson annotations. If you are new to the Jackson API for JSON serialization and deserialization, check out this article on Introduction to Jackson ...

Read More »

Introduction to Jackson ObjectMapper

In this example, we will learn about the ObjectMapper class from Jackson and its capabilities to serialize POJOs(Plain Old Java Objects) into JSON strings and deserialize JSON strings back into Java objects, with some examples. 1. Where To Start? The first step to getting our hands dirty with ObjectMapper and Jackson data binding is to get the libraries and add ...

Read More »

Play! Framework JSON & Scala Example

In this post, we feature a comprehensive Example on Play! Framework JSON & Scala. In my last two posts, we have discussed about Play Framework + Scala + SBT based project basics. Please refer Play! Framework Hello World Example and Play! Framework Path, Query and Route Default Params Example to understand Play + SBT Project structure, Project configurations, SBT configurations ...

Read More »

Getting Started With Google’s HTTP Client Library for Java

Bipartite Graph

Google’s HTTP Client Library for Java is a one-stop shop for all your HTTP client needs, irrespective of the Java platform (application server, Android, App Engine etc.). It offers a well-designed abstraction layer over a number of lower level HTTP client implementations (we’ll talk more about this later). The only downside is that the official documentation on it is minimal ...

Read More »

MongoDB Import and Export JSON Data Example

Hello readers, these days to protect the data against any damage or any unforeseen outages it is recommended to move a database from one server to another. In Mongo world, it is pretty straightforward and in this tutorial, we will see how to use the export and import features of the Mongo database. 1. Introduction If you have installed the ...

Read More »

Spring REST with JSON Example

RESTful web services using JSON data format address the problems with SOAP web services using XML. REST can output data in different formats like Comma Separated Values (CSV) or Really Simple Syndication (RSS), but the most popular format is JSON. Compared to XML, JSON is not only more human readable but also lightweight. It’s easier for the browser to take ...

Read More »

Read JSON From a URL Example Using Data Pipeline

I have a problem. I want to read JSON from a URL. Naturally, like anybody else, I googled for some solutions. There were a lot of solutions shared in Stack Overflow and other sites. I tried some of them but I’d like to share the one where I used the Data Pipeline Java library. 1. Tools and Prerequisites Data Pipeline ...

Read More »

Java JSON RESTful Web Service Example

In this example we shall learn implementing Restful Web Service in Java where the data interchange format shall be JSON. 1. Introduction to RESTful Web Services RESTful Web Services follow REST architecture which stands for REpresentational State Transfer. RESTful web services are light weight and highly scalable is one of the most common way to create APIs on web. In ...

Read More »