Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Add GSON support #195

Open
jaredsburrows opened this issue Sep 27, 2016 · 7 comments
Open

Add GSON support #195

jaredsburrows opened this issue Sep 27, 2016 · 7 comments

Comments

@jaredsburrows
Copy link

The README.md says it does support GSON. Can there be an example?

@alicederyn
Copy link
Collaborator

Jackson, I'm afraid, not GSON. I assume this is a feature request, though.

@jaredsburrows
Copy link
Author

I thought this was saying it could support gson: https://github.com/google/FreeBuilder#immutables-vs-freebuilder.

@alicederyn
Copy link
Collaborator

Immutables supports GSON, FreeBuilder does not.

On Tue, 27 Sep 2016, 23:36 Jared Burrows, [email protected] wrote:

I thought this was saying it could support gson:
https://github.com/google/FreeBuilder#immutables-vs-freebuilder.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#195 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA7xqTJ0mhG15i-gyhcKmeyVbMqE3HnBks5quZqAgaJpZM4KIFxV
.

@jaredsburrows
Copy link
Author

Then I would like to request this feature.

@jaredsburrows jaredsburrows changed the title Example of @FreeBuilder and @Expose for GSON support [Feature Request] @FreeBuilder GSON support Sep 28, 2016
@alicederyn
Copy link
Collaborator

Sure thing! Not sure when I'll be able to work on it, but it'll definitely be sooner if you would be willing to peer review the code changes -- would that be okay?

@jaredsburrows
Copy link
Author

Yeah sure. I just came across this the other day and wanted to check it out. This might be able to support gson out of the box if you simple allow gson to parse all fields without @Expose.

@alicederyn alicederyn changed the title [Feature Request] @FreeBuilder GSON support Add GSON support Sep 30, 2016
@GeenDutchman
Copy link

GeenDutchman commented Oct 16, 2024

I know I'm very late for this party, but is there anything preventing the support of GSON? The most I can see is if the generated builder needs parameterized types, and getting to register whatever TypeAdapter,TypeAdapterFactory, RuntimeAdapterFactory, or JsonSerializer+JsonDeserializer+InstanceCreature that would maybe need to be generated alongside the Builder with a Gson instance.

Maybe something to do with the delegation method mentioned here?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants