JSON Tutorials & Protips

How to convert XML to JSON in Node.js

A step-by-step guide to learn how to convert an XML file or a string to a JSON object by using Node.js.

Node.jsJSONXML

How to send JSON request using XMLHttpRequest (XHR)

A short tutorial to learn how to make JSON POST request to the server using XMLHttpRequest (XHR) in JavaScript.

JSONJavaScript

How to Read JSON from a File using Gson

A quick tutorial to learn how to read JSON data from a file using Gson.

JavaJSON

How to Write JSON to a File using Gson

A quick tutorial to learn how to write JSON data to a file using the Gson library.

JavaJSON

Read and Write JSON as a Stream using Gson

A quick article to learn how to read and write JSON as a stream by using the Gson library.

JavaJSON

Pretty Print JSON Output using Gson

A short tutorial to learn how to enable pretty print JSON output using Gson.

JavaJSON

Convert JSON String to and from Map using Gson

A short tutorial to learn how to convert a JSON string to Java Map and vice versa using Gson.

JavaJSON

Convert JSON Array to and from Java List using Gson

A short tutorial to learn how to convert a JSON array to a Java list and vice versa using Gson.

JavaJSON

Convert Java Object to and from JSON using Gson

A quick guide to learn how to convert a Java Object to a JSON string or file and vice versa by using the Gson library.

JavaJSON

How to read and write JSON using Gson in Java

A complete guide to learn how to read and write JSON to a file as well as convert a Java Object to JSON and back by using the Gson library.

JavaJSON

How to Read JSON from a File using Jackson

A quick tutorial to learn how to read JSON data from a file using Jackson API.

JavaJSONJackson

How to Write JSON to a File using Jackson

A quick tutorial to learn how to write JSON to a file using Jackson API.

JavaJSONJackson

How to create a JSON Object using Jackson

A short tutorial to learn how to create a JSON object using Jackson API.

JavaJSONJackson

How to create a JSON array using Jackson

A short tutorial to learn how to create a JSON array using Jackson API.

JavaJSONJackson

Working with Tree Model Nodes in Jackson

A comprehensive guide to understand what is Jackson tree model and how to add, remove, modify and traverse JSON nodes using tree model.

JavaJSONJackson

Convert Java Object to JsonNode using Jackson

A short tutorial to learn how to convert a Java Object or a Map to a JsonNode Object using Jackson.

JavaJSONJackson

Pretty Print JsonNode to JSON String using Jackson

A short guide to learn how to pretty print a JsonNode to a JSON string using Jackson.

JavaJSONJackson

Convert JSON String to JsonNode using Jackson

A short tutorial to learn about different ways of converting JSON string to JsonNode using Jackson.

JavaJSONJackson

Mapping a Dynamic JSON Object with Jackson

A short tutorial to learn how to map a dynamic JSON object to a Java class using Jackson API.

JavaJSONJackson

Ignoring unknown JSON properties with Jackson

A short tutorial to learn how to ignore unknown JSON properties while parsing JSON to a Java Object using Jackson API.

JavaJSONJackson

✨ Learn to build modern web applications using JavaScript and Spring Boot

I started this blog as a place to share everything I have learned in the last decade. I write about modern JavaScript, Node.js, Spring Boot, core Java, RESTful APIs, and all things web development.

The newsletter is sent every week and includes early access to clear, concise, and easy-to-follow tutorials, and other stuff I think you'd enjoy! No spam ever, unsubscribe at any time.