Sep 29, 2020 09:20 PM|mgebhard|LINK
You are not following the openly published specifications. Local storage uses name/value pairs; strings.
The keys and the values are always in the UTF-16 DOMString format, which uses two bytes per character.
As with objects, integer keys are automatically converted to strings.