Skip to content

Don't force consumers to use Gson (please) #122

@JvmName

Description

@JvmName

Hi LD team!
I understand that y'all want to own your own JSON+networking stack -- and since app size isn't an issue for us, y'all bundling Gson for internal networking purposes is not a huge deal. But what is an issue is that there are a number of APIs that require a com.google.gson.JsonElement -- e.g. track(String, JsonElement), or jsonVariation(String, JsonElement) : JsonElement.

If I want to pull a JSON blob, or pass info to LD, I have to add Gson to my classpath! Which is a bummer, since my app uses Moshi through and through 😁

I recognize this would be a breaking change, here's the request - can you please scrub any Gson classes from the public API? Let me pass a Map<String, Any> to track, and have jsonVariation give me a String? instead.

Thank for hearing me out!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions