RuedigerMoeller / fast-serialization

FST: fast java serialization drop in-replacement
Apache License 2.0
1.59k stars 245 forks source link

JSON encoding - Enums which override toString #336

Open richard-smith-preservica opened 1 year ago

richard-smith-preservica commented 1 year ago

Using toString in the encoder and Enum.valueOf is not reversible if an enum overrides toString. name and valueOf are the correct inverse functions.