Skip to content
/ J2Son Public

Java class to Json converter 🖥️➡️📋

Notifications You must be signed in to change notification settings

mikhomak/J2Son

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple class to convert java object to Json format using reflection
It takes every Getter of the class and creates a fields with the value
Supports collections and other classes as fileds

What is it for? And why not use google GSON?

Originally was made to convert hybris models to json to send it via REST
GSON wouldn't work with hybris models because it converts the entire object(with context, history and other attribtues)
Plus there was a need for custom filter and some field modification behind it

FILTER

To use the filter you can you create a map with the ClassName of the object as a key and a List of String of Attributes you want to convert

About

Java class to Json converter 🖥️➡️📋

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages