Summary. JavaScript objects have two types of properties: data properties and accessor properties.
It looks that there is a limit at 16GB, but you can read some tests below or in @ssube's answer. But probably when your object/json is around 50 mb you'll encounter strange behaviour.
Object properties are defined as a simple association between name and value. All properties have a name and value is one of the attributes linked with the property, which defines the access granted to the property. Properties refer to the collection of values which are associated with the JavaScript object.
The length property is used to get the number of keys present in the object. It gives the length of the object. the length of the object.
We have an object with more than 75000 properties. The format of the object is as following:
// The key starts with 3 letters and then is followed by 8 numbers
var bigArray = {'AAA########':123456789,
'AAA########':123456790,
'AAA########':123456791
};
Is there a known limit of the quantity of properties for JavaScript objects? From my tests the object still works at 65500 elements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With