Hot answers tagged


libGDX Json converts Enums to strings and therefore cannot serialize / de-serialize Map keys to anything but strings. To fix this, either... Use strings for keys in Maps (ObjectMap, HashMap ect.). Use GSON, which can serialize Enum Map Keys just fine. Write lots of special serialization / de-serialization code using a class that implements Json....

Only top voted, non community-wiki answers of a minimum length are eligible