google / gson

A Java serialization/deserialization library to convert Java Objects into JSON and back
Apache License 2.0
23.16k stars 4.27k forks source link

Extend `JsonElement` documentation #2654

Closed Marcono1234 closed 2 months ago

Marcono1234 commented 4 months ago

Purpose

Extends the JsonElement documentation, describing various ways to convert from / to JsonElement

Relates to #1972

Description

Extends the JsonElement documentation to describe how to convert JsonElement from / to JSON, but also how to use JsonElement as JSON data and deserializing from / serializing to it.

Maybe the documentation provides too much information now though, potentially confusing users?

A fix for #591 has been implemented in the separate pull request #2659.

Checklist

eamonnmcmanus commented 4 months ago

This looks good to me. I think it's valuable, because some aspects of JsonElement usage are not apparent to newcomers.

Marcono1234 commented 2 months ago

The changes were included as part of #2659, so this pull request is obsolete now.