typescript-generator
typescript-generator copied to clipboard
PLEASE VOTE: Which JSON library do you use?
Vote using 👍 (mark all libraries that you want to use with typescript-generator)
Jackson 2
Jackson 1
JAXB
GSON
Other public library
(please comment)
Some private library
The thing is... it depends.
For small objects, GSON is better. For big objects trees, Jackson2 is better.
REST services is usually small to medium objects so GSON is a better choice.
@Rouche you can select more than one option. (I just added note to original comment.)
@vojtechhabarta Another thing to note that goes along with my request about Spring. You would not need any implementations Java side. As the serialization is all taken care of with spring. Depending on the dependency you have, Jackson2 or GSON is resolved from classpath.
All of this with one annotation.
@ResponseBody
I need to finish generation part this week. Hoping all goes well.
@vojtechhabarta please add Yasson/JSONB to libraries
@vojtechhabarta if you need some help to add Yasson-related features, I could help you. My team already implemented a lot to support this library. And of course, we can create a PR to add an ability to generate REST clients based on fetch API.