Can anyone please with K6 IO - Getting parsing error for a property used which has special characters as below? How can we solve that please? causing issue
I’m not exactly sure what you’re trying to do, but if you want to define object keys dynamically, you need to surround them with square brackets. For example:
In the absence of additional details, I’ll have a go at this question from two different angles.
If you are indeed trying to set the key to the string login[username] which I for sure would discourage, if you have any say at all into how this is implemented, you could do:
If you, however, are looking to add a login object to your form data that contains the properties username and password, this would be the idiomatic approach: