I have a large json map with around 1 million objects and each object with around 200 key-value pair.
eg. [{key1 : val1, key2 : val2, ...}, {key1 : val3, key2 : val4, ...}]
as you see the keys are getting duplicated here, with each key means a new String object. Is there any alternative way where I can say that all duplicate keys should point to same String object to reduce the memory size of map. With the mentioned stats the browser blows up with more than 1Gb of memory.