Gson 简明教程

Google Gson Tutorial

Google Gson 是 Google 开发的一个基于 Java 的开源库。它便于将 Java 对象序列化为 JSON,反之亦然。本教程采用简单直观的方式,描述 Google Gson 的基本到高级概念,以及如何使用它的 API。

Google Gson is an open source, Java-based library developed by Google. It facilitates serialization of Java objects to JSON and vice versa. This tutorial adopts a simple and intuitive way to describe the basic-to-advanced concepts of Google Gson and how to use its APIs.

Audience

本教程对从初学者到专家的大多数 Java 开发人员都会很有用。完成本教程后,我们相信你将发现轻松在你的程序中使用 Google Gson。

This tutorial will be useful for most Java developers, starting form beginners to experts. After completing this tutorial, we are confident that you will find it easy to use Google Gson in your programs.

Prerequisites

这是一个任何具有一定 Java 编程经验的开发人员都可以轻松理解的简单教程。

It is a simple tutorial that any developer with a little exposure to Java programming can easily understand.