When using the arr[] syntax to add more elements to the same array, and using nested keys arr[][nestedObjAttr] with multiple nested objects arr[][nestedObjAttr][secondNestedAttr], it was erroneously overriding the nested key. The function deepSet will now check nested keys to see if the previous value was already set or not in nested objects.
Fixes #110
When using the
arr[]
syntax to add more elements to the same array, and using nested keysarr[][nestedObjAttr]
with multiple nested objectsarr[][nestedObjAttr][secondNestedAttr]
, it was erroneously overriding the nested key. The functiondeepSet
will now check nested keys to see if the previous value was already set or not in nested objects.