Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
forked fromgoogle/gson

A Java serialization/deserialization library that can convert Java Objects into JSON and back.

License

NotificationsYou must be signed in to change notification settings

sabarnwa/gson

 
 

Repository files navigation

Build StatusMaven CentralJavadoc

Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object.Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of.

There are a few open-source projects that can convert Java objects to JSON. However, most of them require that you place Java annotations in your classes; something that you can not do if you do not have access to the source-code. Most also do not fully support the use of Java Generics. Gson considers both of these as very important design goals.

Gson Goals

  • Provide simpletoJson() andfromJson() methods to convert Java objects to JSON and vice-versa
  • Allow pre-existing unmodifiable objects to be converted to and from JSON
  • Extensive support of Java Generics
  • Allow custom representations for objects
  • Support arbitrarily complex objects (with deep inheritance hierarchies and extensive use of generic types)

Gson Download and Maven

  • Gson Download downloads at Maven Central
  • For Maven check "Dependency Information" tab, on the left side.

Gson Documentation

  • GsonAPI: Javadocs for the current Gson release
  • Gsonuser guide: This guide contains examples on how to use Gson in your code.
  • GsonRoadmap: Details of changes in the recent versions
  • Gsondesign document: This document discusses issues we faced while designing Gson. It also include a comparison of Gson with other Java libraries that can be used for Json conversion

Please use thegoogle-gson Google group to discuss Gson, or to post questions.

Gson-related Content Created by Third Parties

License

Gson is released under theApache 2.0 license.

Copyright 2008 Google Inc.Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License at    http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.

About

A Java serialization/deserialization library that can convert Java Objects into JSON and back.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML53.4%
  • Java46.4%
  • Other0.2%

[8]ページ先頭

©2009-2025 Movatter.jp