Skip to content

mkyong.com

  • Spring Boot
  • Java Virtual Threads
  • Contact
  1. Home /
  2. object to json

Tag: object to json

j
java April 29, 2024 by mkyong 0 comments

How to parse JSON using Moshi

This article shows how to parse JSON using Moshi. Table of contents: 1. Download Moshi 2. Parse JSON using Moshi 3. Parse JSON Array using Moshi 4. Convert Java Object to JSON String 5. Download Source Code 6. References P.S Tested with Moshi 1.15.1 1. Download Moshi Declare moshi in the pom.xml, and it will […]

Read more How to parse JSON using Moshi
j
java April 24, 2024 by mkyong 1 comment

Convert Java Objects to JSON with Jackson

This article will show you how to convert Java objects to JSON with Jackson. Table of contents: 1. Setup Jackson 2. Jackson quick examples 3. Convert Java Object to JSON using Jackson 4. Convert JSON to Java object using Jackson 5. Write Java object to JSON file 6. Read from JSON file to Java object […]

Read more Convert Java Objects to JSON with Jackson
java April 23, 2019 by mkyong 3 comments

How to parse JSON using Gson

This article shows how to parse JSON using Gson. Table of contents: 1. Download Google Gson 2. A Java Object 3. Parse JSON String using Gson 4. Parse JSON Array using Gson 5. Convert Java Object to JSON using Gson 6. Unstructured JSON 7. Download Source Code 8. References P.S Tested with Gson 2.10.1 1. […]

Read more How to parse JSON using Gson
json logo
java August 11, 2011 by mkyong 1 comment

Read and write JSON using JSON.simple

This article shows how to read and write JSON using JSON.simple. Table of contents: 1. Setup JSON.simple 2. Write JSON to File using JSON.simple 3. Read JSON from File using JSON.simple 4. Java object to JSON using JSON.simple 5. JSON to Java Object using JSON.simple 6. Download Source Code 7. References P.S Tested with json-simple […]

Read more Read and write JSON using JSON.simple
json logo
java March 18, 2009 by mkyong 0 comments

Convert Java objects to from JSON using Gson

This article shows how to convert Java objects to from JSON using Gson. Table of contents: 1. Download Google Gson 2. Gson Basic Usages 3. Java Object 4. Convert Object to JSON using Gson 5. Converts JSON to Java Object using Gson 6. Modify JSON with JsonElement 7. Converts Json Array to List objects 8. […]

Read more Convert Java objects to from JSON using Gson

Mkyong.com has provided Java and Spring tutorials, guides, and code snippets since 2008. All published articles are simple, easy to understand, and well-tested in our development environment.

Mkyong.com licenses all source code on this website under the MIT License.

About
  • About Us
  • Code License
  • Privacy Policy
  • Terms Of Use
  • Contact Us
Tools
  • Spring Framework
  • Quarkus Framework
  • Micronaut Framework
  • Oracle Java JDK
  • Eclipse Temurin JDK
  • OpenJDK JDK
  • Hibernate ORM
  • Maven Build Tool
  • Gradle Build Tool
  • Tomcat Application Server
  • Docker
Links
  • Maven Central
  • Docker Hub
  • Spring Guides
  • Quarkus Guides
  • Micronaut Guides
  • Martin Fowler
  • AskPython

© 2026 mkyong.com — Powered by WordPress

RSS