dot-object icon indicating copy to clipboard operation
dot-object copied to clipboard

Index number in object arrays

Open csulit opened this issue 4 years ago • 2 comments

Is there an option to remove the indexing bracket [] on arrays? bellow is the result when updating data in MongoDB.

image

From: parent.arrayProperty[0].propertyName

To: parent.arrayProperty.0.propertyName

csulit avatar Apr 18 '21 05:04 csulit

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

dharkness avatar Apr 29 '21 22:04 dharkness

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

useBrackets is not available how to set this?

csulit avatar May 04 '21 13:05 csulit