JSON to JAVA Entities Mapping


In previous topics you learn JSON Overview and syntax, Now you will learn about the mapping between the JAVA and JSON entities mappings. These mapping helpful while encoding and decoding of JSON to Java object.

Mapping between JSON and JAVA entities

These are mapping between JSON and JAVA object

JSONJAVA
stringjava.lang.String
numberjava.lang.Number
true | falsejava.lang.Boolen
nullnull
arrayjava.util.List
objectjava.ulit.Map
JSON and JAVA object mapping

Please follow these example to map values. JSON Data Types & Syntax

Happy Learning !!!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s