dot-object
dot-object copied to clipboard
Index number in object arrays
Is there an option to remove the indexing bracket [] on arrays? bellow is the result when updating data in MongoDB.

From: parent.arrayProperty[0].propertyName
To: parent.arrayProperty.0.propertyName
It looks like you can set the useBrackets option to false, but be warned that code that processes the output won't be able to distinguish the dot notation for arrays versus objects with numeric keys.
dot.useBrackets = false
It looks like you can set the
useBracketsoption tofalse, but be warned that code that processes the output won't be able to distinguish the dot notation for arrays versus objects with numeric keys.dot.useBrackets = false
useBrackets is not available how to set this?