<s>
Gson	B-Language
(	O
also	O
known	O
as	O
Google	B-Application
Gson	B-Language
)	O
is	O
an	O
open-source	B-Application
Java	B-Language
library	O
to	O
serialize	B-Application
and	O
deserialize	B-Application
Java	B-Language
objects	O
to	O
(	O
and	O
from	O
)	O
JSON	B-General_Concept
.	O
</s>
<s>
The	O
Gson	B-Language
library	O
was	O
originally	O
developed	O
for	O
internal	O
purposes	O
of	O
Google	B-Application
,	O
and	O
Version	O
1.0	O
was	O
later	O
released	O
on	O
May	O
22	O
,	O
2008	O
under	O
the	O
terms	O
of	O
Apache	B-Application
License	I-Application
2.0	I-Application
.	O
</s>
<s>
Gson	B-Language
uses	O
reflection	B-Language
,	O
so	O
it	O
does	O
not	O
require	O
classes	O
being	O
serialized	O
or	O
de-serialized	O
to	O
be	O
modified	O
.	O
</s>
<s>
The	O
following	O
example	O
demonstrates	O
the	O
most	O
basic	O
usage	O
of	O
Gson	B-Language
when	O
serializing	B-Application
a	O
sample	O
object	O
:	O
</s>
<s>
You	O
will	O
get	O
this	O
JSON	B-General_Concept
output	O
:	O
</s>
<s>
To	O
deserialize	B-Application
the	O
output	O
produced	O
by	O
the	O
last	O
example	O
,	O
you	O
can	O
execute	O
the	O
following	O
code	O
:	O
</s>
<s>
For	O
the	O
above	O
example	O
the	O
following	O
shows	O
how	O
Gson	B-Language
can	O
be	O
used	O
with	O
the	O
Java	B-Language
Platform	I-Language
Module	I-Language
System	I-Language
:	O
</s>
<s>
See	O
Gson	B-Language
's	O
usage	O
guide	O
on	O
their	O
GitHub	O
repository	O
for	O
more	O
extensive	O
examples	O
.	O
</s>
<s>
When	O
deserializing	O
,	O
Gson	B-Language
navigates	O
the	O
type	O
tree	O
of	O
the	O
object	O
being	O
deserialized	O
.	O
</s>
<s>
This	O
results	O
in	O
ignoring	O
extra	O
fields	O
present	O
in	O
the	O
JSON	B-General_Concept
input	O
.	O
</s>
<s>
User	O
can	O
write	O
a	O
custom	O
serializer	O
and/or	O
deserializer	O
so	O
that	O
they	O
can	O
control	O
the	O
whole	O
process	O
and	O
even	O
(	O
de	O
)	O
serialize	B-Application
instances	O
of	O
classes	O
for	O
which	O
the	O
source	O
code	O
is	O
not	O
accessible	O
.	O
</s>
<s>
User	O
can	O
write	O
an	O
InstanceCreator	O
which	O
allows	O
them	O
to	O
deserialize	B-Application
instances	O
of	O
classes	O
without	O
a	O
defined	O
no-args	O
constructor	O
.	O
</s>
<s>
Gson	B-Language
is	O
highly	O
customizable	O
,	O
you	O
can	O
specify	O
:	O
</s>
