Skip to content

This Java App gets my repos via github api and deserialize on a POJO/Array using GSON lib ❤️ .

Notifications You must be signed in to change notification settings

junyorff12/my-git-repos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java JSON deserialize exemple.

This Java App gets my repositories via github api and deserializes in a POJO/Array using GSON lib ❤️ .

image

  • Created a request and manage the response:

image

  • Made a Class name Repos as reference to be serialized:

image

Note! GSON don´t need the anotations in the Object fields unlike JACKSON lib do.

  • Do a GSON instance and easily deserializes response into my Repos.Class, like this response is a Array: Repos[].class

image

  • The result!

image

  • I can do what I want with the data mapped by my Repos Object reference.

Reference:

About

This Java App gets my repos via github api and deserialize on a POJO/Array using GSON lib ❤️ .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages