#GSON converting json to Map<String, SOME_ENUM>

3 messages · Page 1 of 1 (latest)

fierce wasp
#

I'm trying to convert json into a map (see title) using GSON, but the obvious issue arises when the enum contains no value equivalent to the one in json. Is there any way around this?

dapper cedarBOT
#

This post has been reserved for your question.

Hey @fierce wasp! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.